Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits",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.001524/0.001524, allocations: 186.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.956/1.956, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001154/0.001154, allocations: 81.81 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004111/0.0004108, allocations: 12 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3344, allocations: 47.57 MB / 374.6 MB, free: 45.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1332/0.4677, allocations: 81.32 MB / 455.9 MB, free: 15.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/0.468, allocations: 83.95 kB / 456 MB, free: 15.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06683/0.5349, allocations: 15.99 MB / 472 MB, free: 14.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.5349, allocations: 0 / 472 MB, free: 14.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.277e-05/0.5351, allocations: 28 kB / 472 MB, free: 14.91 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002911/0.538, allocations: 1.13 MB / 473.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.722e-05/0.5381, allocations: 12.03 kB / 473.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003632/0.5384, allocations: 152.2 kB / 473.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002851/0.5387, allocations: 126.4 kB / 473.5 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.5403, allocations: 0.5471 MB / 474 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.852e-05/0.5404, allocations: 77.98 kB / 474.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000263/0.5407, allocations: 96 kB / 474.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00281/0.5435, allocations: 1.027 MB / 475.2 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.96e-05/0.5436, allocations: 7.938 kB / 475.2 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001273/0.5437, allocations: 44 kB / 475.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.33e-05/0.5438, allocations: 27.94 kB / 475.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002036/0.5458, allocations: 0.5578 MB / 475.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008443/0.5543, allocations: 5.551 MB / 481.4 MB, free: 5.059 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009414/0.5553, allocations: 237 kB / 481.6 MB, free: 4.809 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002127/0.5555, allocations: 85.09 kB / 481.7 MB, free: 4.707 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/0.5556, allocations: 38.56 kB / 481.7 MB, free: 4.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 2.755e-06/0.5556, allocations: 3.938 kB / 481.7 MB, free: 4.656 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.00607/0.5617, allocations: 1.711 MB / 483.5 MB, free: 2.852 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.621e-05/0.5618, allocations: 89.28 kB / 483.5 MB, free: 2.746 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.5629, allocations: 0.5427 MB / 484.1 MB, free: 2.191 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.205e-05/0.563, allocations: 33.7 kB / 484.1 MB, free: 2.152 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005634/0.5636, allocations: 0.6167 MB / 484.7 MB, free: 1.527 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001714/0.5637, allocations: 134.1 kB / 484.9 MB, free: 1.395 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.492e-05/0.5638, allocations: 16 kB / 484.9 MB, free: 1.379 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.564, allocations: 342.8 kB / 485.2 MB, free: 1.035 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005794/0.5646, allocations: 153.9 kB / 485.4 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008607/0.5655, allocations: 0.4894 MB / 485.9 MB, free: 240 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000728/0.5662, allocations: 239.8 kB / 486.1 MB, free: 4 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/0.5662, allocations: 4 kB / 486.1 MB, free: 0 / 362.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001987/0.5682, allocations: 0.6729 MB / 486.8 MB, free: 15.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.566e-05/0.5683, allocations: 9.406 kB / 486.8 MB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/0.5683, allocations: 12 kB / 486.8 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.591e-05/0.5684, allocations: 20 kB / 486.8 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.5696, allocations: 187.7 kB / 487 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.935e-05/0.5697, allocations: 36.16 kB / 487 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006798/0.5704, allocations: 39.98 kB / 487.1 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.849e-05/0.5705, allocations: 36 kB / 487.1 MB, free: 14.99 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 94 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006042/0.5711, allocations: 225.5 kB / 487.3 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/0.5713, allocations: 75.06 kB / 487.4 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000182/0.5715, allocations: 74.53 kB / 487.5 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.5715, allocations: 7.984 kB / 487.5 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.5715, allocations: 7.938 kB / 487.5 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.5715, allocations: 3.953 kB / 487.5 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003367/0.5749, allocations: 1.295 MB / 488.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.575, allocations: 4 kB / 488.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009411/0.5759, allocations: 103.9 kB / 488.9 MB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.103e-05/0.576, allocations: 7.938 kB / 488.9 MB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.997e-05/0.576, allocations: 8 kB / 488.9 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.576, allocations: 8.031 kB / 488.9 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/0.576, allocations: 3.938 kB / 488.9 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.5779, allocations: 0.7052 MB / 489.6 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002202/0.5781, allocations: 148.2 kB / 489.8 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.539e-05/0.5783, allocations: 4 kB / 489.8 MB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005285/0.5788, allocations: 27.98 kB / 489.8 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.775e-05/0.5789, allocations: 27.91 kB / 489.8 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.734e-05/0.579, allocations: 12 kB / 489.8 MB, free: 12.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007972/0.5798, allocations: 423 kB / 490.2 MB, free: 11.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5798, allocations: 0 / 490.2 MB, free: 11.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009464/0.5807, allocations: 139.9 kB / 490.4 MB, free: 11.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002232/0.583, allocations: 1.414 MB / 491.8 MB, free: 10.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.5844, allocations: 454.2 kB / 492.2 MB, free: 9.684 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.5845, allocations: 0 / 492.2 MB, free: 9.684 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005088/0.585, allocations: 151.8 kB / 492.4 MB, free: 9.535 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000602/0.5856, allocations: 61.38 kB / 492.5 MB, free: 9.477 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2782/0.8638, allocations: 12.48 MB / 0.4931 GB, free: 103.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006118/0.8645, allocations: 1.023 MB / 0.4941 GB, free: 102.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006762/0.8652, allocations: 398.4 kB / 0.4945 GB, free: 102.9 MB / 378.7 MB Notification: Performance of SimCode: time 9.32e-07/0.8652, allocations: 0 / 0.4945 GB, free: 102.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.617/3.483, allocations: 12.75 MB / 0.5069 GB, free: 100.7 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat