Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 92.53 kB / 16.3 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 184.9 kB / 17.2 MB, free: 5.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.561/1.561, allocations: 223.2 MB / 241.1 MB, free: 14.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003698/0.00037, allocations: 8 kB / 300.8 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1308, allocations: 50.41 MB / 351.2 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006266/0.1371, allocations: 4.42 MB / 355.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003701/0.1408, allocations: 1.407 MB / 357.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001403/0.1423, allocations: 27.81 kB / 357.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003679/0.1427, allocations: 107 kB / 357.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00123/0.1439, allocations: 239.2 kB / 357.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.1451, allocations: 291.6 kB / 357.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001433/0.1465, allocations: 0.761 MB / 358.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006681/0.1472, allocations: 346.2 kB / 358.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006938/0.1479, allocations: 314.5 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004573/0.1484, allocations: 349.9 kB / 359.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.77e-05/0.1485, allocations: 44 kB / 359.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001618/0.1486, allocations: 47.98 kB / 359.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.1488, allocations: 155.3 kB / 359.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.149, allocations: 197.1 kB / 359.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008361/0.1498, allocations: 0.7754 MB / 360.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1499, allocations: 0 / 360.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1499, allocations: 3.938 kB / 360.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.1499, allocations: 0 / 360.7 MB, free: 10.2 MB / 302.1 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.002074/0.152, allocations: 1.138 MB / 361.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.152, allocations: 8.031 kB / 361.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001793/0.1522, allocations: 156.2 kB / 362 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.1524, allocations: 130.4 kB / 362.1 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009506/0.1534, allocations: 0.5801 MB / 362.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.692e-05/0.1534, allocations: 77.94 kB / 362.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.1536, allocations: 107.9 kB / 362.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001961/0.1555, allocations: 1.007 MB / 363.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.649e-05/0.1556, allocations: 7.938 kB / 363.9 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-05/0.1557, allocations: 59.86 kB / 363.9 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.622e-05/0.1557, allocations: 24 kB / 364 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.1569, allocations: 0.5578 MB / 364.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006417/0.1633, allocations: 5.524 MB / 370 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007005/0.1641, allocations: 236.1 kB / 370.3 MB, free: 72 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2795/0.4436, allocations: 82.55 kB / 370.3 MB, free: 24.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/0.4436, allocations: 37.25 kB / 370.4 MB, free: 24.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.355e-06/0.4437, allocations: 0.5625 kB / 370.4 MB, free: 24.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.004315/0.448, allocations: 1.721 MB / 372.1 MB, free: 23.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.448, allocations: 86.06 kB / 372.2 MB, free: 23.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008272/0.4489, allocations: 0.632 MB / 372.8 MB, free: 23.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.4489, allocations: 31.14 kB / 372.9 MB, free: 23.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003803/0.4493, allocations: 0.5982 MB / 373.5 MB, free: 23.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.4494, allocations: 139.8 kB / 373.6 MB, free: 23.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/0.4495, allocations: 14.53 kB / 373.6 MB, free: 23.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.4497, allocations: 388.2 kB / 374 MB, free: 22.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003644/0.45, allocations: 155 kB / 374.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005076/0.4505, allocations: 0.4923 MB / 374.6 MB, free: 22.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005185/0.4511, allocations: 229.6 kB / 374.8 MB, free: 22.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.4511, allocations: 3.188 kB / 374.9 MB, free: 22.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001312/0.4524, allocations: 0.72 MB / 375.6 MB, free: 22.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.4525, allocations: 9.688 kB / 375.6 MB, free: 22.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.304e-05/0.4525, allocations: 13.95 kB / 375.6 MB, free: 22.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.964e-05/0.4525, allocations: 21.16 kB / 375.6 MB, free: 22.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006771/0.4532, allocations: 188.7 kB / 375.8 MB, free: 22.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.823e-05/0.4533, allocations: 29.44 kB / 375.8 MB, free: 22.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004139/0.4537, allocations: 41.38 kB / 375.9 MB, free: 22.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.988e-05/0.4538, allocations: 40.89 kB / 375.9 MB, free: 22.02 MB / 302.1 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.0003146/0.4541, allocations: 226.2 kB / 376.1 MB, free: 21.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.4542, allocations: 74.81 kB / 376.2 MB, free: 21.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.4543, allocations: 77.72 kB / 376.3 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.4544, allocations: 4.125 kB / 376.3 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.578e-05/0.4544, allocations: 1.375 kB / 376.3 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.4544, allocations: 2.531 kB / 376.3 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002326/0.4567, allocations: 1.304 MB / 377.6 MB, free: 21.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.4567, allocations: 1.5 kB / 377.6 MB, free: 21.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004837/0.4572, allocations: 110.2 kB / 377.7 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.4572, allocations: 1.656 kB / 377.7 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/0.4573, allocations: 9.562 kB / 377.7 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.4573, allocations: 5.891 kB / 377.7 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4573, allocations: 1.375 kB / 377.7 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009932/0.4583, allocations: 0.7146 MB / 378.4 MB, free: 20.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.4584, allocations: 136.7 kB / 378.6 MB, free: 20.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.039e-05/0.4585, allocations: 7.203 kB / 378.6 MB, free: 20.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002843/0.4588, allocations: 33.09 kB / 378.6 MB, free: 20.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.449e-05/0.4589, allocations: 29.86 kB / 378.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.4589, allocations: 14.28 kB / 378.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005564/0.4595, allocations: 412.7 kB / 379.1 MB, free: 20.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4595, allocations: 1.25 kB / 379.1 MB, free: 20.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007834/0.4603, allocations: 136.1 kB / 379.2 MB, free: 20.23 MB / 302.1 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.001244/0.4615, allocations: 1.411 MB / 380.6 MB, free: 19.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009136/0.4624, allocations: 451 kB / 381 MB, free: 18.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4625, allocations: 0 / 381 MB, free: 18.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002588/0.4627, allocations: 159.7 kB / 381.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.4631, allocations: 61.31 kB / 381.3 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009635/0.4728, allocations: 12.43 MB / 393.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007485/0.4736, allocations: 1.031 MB / 394.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004322/0.474, allocations: 95.08 kB / 394.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004667/0.4745, allocations: 389.2 kB / 395.2 MB, free: 7.195 MB / 302.1 MB Notification: Performance of SimCode: time 1.503e-06/0.4745, allocations: 0 / 395.2 MB, free: 7.195 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02836/0.5029, allocations: 11.38 MB / 406.6 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002225/0.5032, allocations: 191 kB / 406.8 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.128/2.631, allocations: 0 / 406.8 MB, free: 0.5078 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat