Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.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.QuasiStationary.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009557/0.0009556, allocations: 174.6 kB / 8.475 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.054/1.054, allocations: 205.2 MB / 214.1 MB, free: 1.789 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008343/0.0008343, allocations: 75.45 kB / 262.1 MB, free: 1.746 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1276/0.1285, allocations: 52.98 MB / 315.1 MB, free: 22.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06409/0.1926, allocations: 47.59 MB / 362.6 MB, free: 7.27 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2062/0.3988, allocations: 80.84 MB / 443.5 MB, free: 14.67 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/0.3991, allocations: 77.83 kB / 443.6 MB, free: 14.63 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.03762/0.4367, allocations: 16.37 MB / 459.9 MB, free: 1.379 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.4367, allocations: 12 kB / 459.9 MB, free: 1.367 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003024/0.4398, allocations: 464.8 kB / 460.4 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004515/0.4402, allocations: 312.2 kB / 460.7 MB, free: 0.668 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/0.4403, allocations: 20 kB / 460.7 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.4404, allocations: 39.8 kB / 460.8 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000974/0.4414, allocations: 0.5664 MB / 461.3 MB, free: 244 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007535/0.4421, allocations: 429.3 kB / 461.7 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.4422, allocations: 7.906 kB / 461.7 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.213e-05/0.4422, allocations: 0 / 461.7 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.4422, allocations: 12 kB / 461.8 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003016/0.4453, allocations: 2.12 MB / 463.9 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007245/0.446, allocations: 430.6 kB / 464.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002262/0.4462, allocations: 182.3 kB / 464.5 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.425e-05/0.4463, allocations: 97.52 kB / 464.6 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.4464, allocations: 34.69 kB / 464.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 1.824e-06/0.4464, allocations: 4 kB / 464.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009801/0.4474, allocations: 452.8 kB / 465.1 MB, free: 13.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.4474, allocations: 55.84 kB / 465.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.4476, allocations: 160.7 kB / 465.3 MB, free: 13 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.4476, allocations: 25.7 kB / 465.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.4477, allocations: 245.1 kB / 465.5 MB, free: 12.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.4479, allocations: 167.6 kB / 465.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.182e-05/0.4479, allocations: 0 / 465.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.448, allocations: 335.9 kB / 466 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002186/0.4482, allocations: 139.4 kB / 466.2 MB, free: 12.18 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002729/0.4485, allocations: 249.9 kB / 466.4 MB, free: 11.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004736/0.449, allocations: 204 kB / 466.6 MB, free: 11.83 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.449, allocations: 0 / 466.6 MB, free: 11.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00108/0.4501, allocations: 0.5502 MB / 467.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.4501, allocations: 4 kB / 467.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.4501, allocations: 4 kB / 467.2 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003132/0.4504, allocations: 85.38 kB / 467.2 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004557/0.4509, allocations: 111.5 kB / 467.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001727/0.4526, allocations: 1.725 MB / 469.1 MB, free: 9.582 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003127/0.453, allocations: 47.58 kB / 469.1 MB, free: 9.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/0.453, allocations: 19.31 kB / 469.1 MB, free: 9.52 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.4531, allocations: 120.8 kB / 469.3 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.66e-05/0.4532, allocations: 23.72 kB / 469.3 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00108/0.4543, allocations: 0.5241 MB / 469.8 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.4543, allocations: 7.938 kB / 469.8 MB, free: 8.973 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4543, allocations: 4 kB / 469.8 MB, free: 8.969 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.4543, allocations: 8 kB / 469.8 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.4558, allocations: 1.085 MB / 470.9 MB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.4558, allocations: 192 / 470.9 MB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003804/0.4562, allocations: 87.58 kB / 471 MB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002499/0.4565, allocations: 88.12 kB / 471.1 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.991e-05/0.4565, allocations: 4 kB / 471.1 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001616/0.4581, allocations: 1.731 MB / 472.8 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/0.4581, allocations: 4 kB / 472.8 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001161/0.4593, allocations: 0.7551 MB / 473.6 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002124/0.4614, allocations: 1.751 MB / 475.3 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.958e-05/0.4615, allocations: 120.7 kB / 475.4 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.808e-05/0.4616, allocations: 4 kB / 475.4 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002583/0.4619, allocations: 11.98 kB / 475.5 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.921e-05/0.4619, allocations: 28.39 kB / 475.5 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.012e-05/0.462, allocations: 16 kB / 475.5 MB, free: 4.078 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.808e-05/0.4621, allocations: 124.3 kB / 475.6 MB, free: 3.957 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00112/0.4632, allocations: 155.4 kB / 475.8 MB, free: 3.805 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (capacitor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 43 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002263/0.4634, allocations: 135.2 kB / 475.9 MB, free: 3.664 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008341/0.4643, allocations: 0.5165 MB / 476.4 MB, free: 3.141 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4643, allocations: 0 / 476.4 MB, free: 3.141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004721/0.4648, allocations: 343.9 kB / 476.8 MB, free: 2.793 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002152/0.465, allocations: 16.17 kB / 476.8 MB, free: 2.777 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.4681, allocations: 1.084 MB / 477.9 MB, free: 1.664 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000601/0.4688, allocations: 0.8742 MB / 478.7 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4688, allocations: 0 / 478.7 MB, free: 0.7617 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat