Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001526/0.001531, allocations: 181.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.096/2.096, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 82.66 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.841e-05/3.876e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09596/0.09604, allocations: 47.59 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4223/0.5184, allocations: 83.33 MB / 452.5 MB, free: 9.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.5188, allocations: 74.7 kB / 452.6 MB, free: 9.871 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07608/0.5949, allocations: 18.58 MB / 471.2 MB, free: 8.828 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.527e-06/0.5949, allocations: 0 / 471.2 MB, free: 8.828 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001129/0.5951, allocations: 38.17 kB / 471.2 MB, free: 8.793 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.003381/0.5985, allocations: 1.147 MB / 472.4 MB, free: 7.598 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.5985, allocations: 8.031 kB / 472.4 MB, free: 7.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004905/0.599, allocations: 181.6 kB / 472.5 MB, free: 7.402 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003618/0.5994, allocations: 142.3 kB / 472.7 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.6012, allocations: 0.6369 MB / 473.3 MB, free: 6.578 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.6013, allocations: 94.41 kB / 473.4 MB, free: 6.484 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002526/0.6016, allocations: 116 kB / 473.5 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00339/0.605, allocations: 1.221 MB / 474.7 MB, free: 4.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.878e-05/0.6051, allocations: 15.83 kB / 474.8 MB, free: 4.965 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001535/0.6053, allocations: 52 kB / 474.8 MB, free: 4.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.048e-05/0.6054, allocations: 32 kB / 474.8 MB, free: 4.883 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002258/0.6076, allocations: 0.6463 MB / 475.5 MB, free: 4.238 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01052/0.6182, allocations: 6.848 MB / 482.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.6193, allocations: 253.4 kB / 482.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000485/0.6198, allocations: 161.6 kB / 482.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001837/0.62, allocations: 97.03 kB / 482.8 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.6201, allocations: 34.52 kB / 482.9 MB, free: 12.47 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 3.977e-06/0.6201, allocations: 0 / 482.9 MB, free: 12.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.003423/0.6235, allocations: 1.28 MB / 484.1 MB, free: 11.08 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.316e-05/0.6236, allocations: 81.11 kB / 484.2 MB, free: 10.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001223/0.6249, allocations: 0.5585 MB / 484.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.703e-05/0.625, allocations: 33.7 kB / 484.8 MB, free: 10.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006867/0.6257, allocations: 0.6979 MB / 485.5 MB, free: 9.664 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.6259, allocations: 122.4 kB / 485.6 MB, free: 9.543 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.806e-05/0.626, allocations: 16 kB / 485.7 MB, free: 9.527 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.6262, allocations: 338.8 kB / 486 MB, free: 9.188 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004042/0.6266, allocations: 129.8 kB / 486.1 MB, free: 9.059 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007493/0.6273, allocations: 0.5338 MB / 486.6 MB, free: 8.324 MB / 362.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.6284, allocations: 418.6 kB / 487.1 MB, free: 7.879 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.236e-05/0.6284, allocations: 4 kB / 487.1 MB, free: 7.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001981/0.6304, allocations: 0.7249 MB / 487.8 MB, free: 7.141 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.727e-05/0.6305, allocations: 12 kB / 487.8 MB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.766e-05/0.6306, allocations: 16 kB / 487.8 MB, free: 7.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003747/0.6309, allocations: 77.73 kB / 487.9 MB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.6321, allocations: 191.7 kB / 488.1 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003454/0.6355, allocations: 2.961 MB / 491 MB, free: 3.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007518/0.6363, allocations: 35.98 kB / 491.1 MB, free: 3.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.507e-05/0.6364, allocations: 40 kB / 491.1 MB, free: 3.539 MB / 362.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002492/0.6367, allocations: 172.5 kB / 491.3 MB, free: 3.363 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.6369, allocations: 79.12 kB / 491.4 MB, free: 3.285 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002068/0.6371, allocations: 70.55 kB / 491.4 MB, free: 3.215 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.6371, allocations: 0 / 491.4 MB, free: 3.215 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/0.6371, allocations: 7.984 kB / 491.4 MB, free: 3.207 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.6371, allocations: 144 / 491.4 MB, free: 3.207 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002814/0.64, allocations: 1.228 MB / 492.7 MB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.64, allocations: 3.984 kB / 492.7 MB, free: 1.902 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006307/0.6406, allocations: 63.91 kB / 492.7 MB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000258/0.6409, allocations: 53.69 kB / 492.8 MB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/0.641, allocations: 8.094 kB / 492.8 MB, free: 1.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002949/0.6439, allocations: 2.764 MB / 495.5 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.644, allocations: 0 / 495.5 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.6453, allocations: 0.6467 MB / 496.2 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.6455, allocations: 148.2 kB / 496.3 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.405e-05/0.6456, allocations: 11.94 kB / 496.4 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004595/0.6461, allocations: 23.94 kB / 496.4 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.6462, allocations: 19.97 kB / 496.4 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.088e-05/0.6462, allocations: 8 kB / 496.4 MB, free: 13.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008232/0.6471, allocations: 427.2 kB / 496.8 MB, free: 13.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.6471, allocations: 4 kB / 496.8 MB, free: 13.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001198/0.6483, allocations: 152 kB / 497 MB, free: 13.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001795/0.6501, allocations: 1.477 MB / 498.4 MB, free: 11.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.6517, allocations: 0.6218 MB / 499.1 MB, free: 11.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.6517, allocations: 3.938 kB / 499.1 MB, free: 11.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006772/0.6524, allocations: 346 kB / 499.4 MB, free: 10.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006163/0.653, allocations: 75.23 kB / 499.5 MB, free: 10.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004577/0.6576, allocations: 1.556 MB / 0.4893 GB, free: 9.008 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009581/0.6586, allocations: 1.062 MB / 0.4903 GB, free: 7.918 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007957/0.6594, allocations: 427.3 kB / 0.4907 GB, free: 7.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.523e-06/0.6594, allocations: 0 / 0.4907 GB, free: 7.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.124/3.783, allocations: 23.18 MB / 0.5134 GB, free: 284 kB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat