Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",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 4.0.0+maint.om/package.mo): time 0.0009909/0.0009909, allocations: 183.8 kB / 8.136 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.173/1.173, allocations: 221.4 MB / 229.9 MB, free: 3.09 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009041/0.0009041, allocations: 94.45 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1028/0.1038, allocations: 55.82 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.3085, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08061/0.3892, allocations: 78.57 MB / 465.6 MB, free: 8.184 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001941/0.3894, allocations: 69.06 kB / 465.6 MB, free: 8.117 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.01418/0.4036, allocations: 5.393 MB / 471 MB, free: 2.699 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.4037, allocations: 11.98 kB / 471.1 MB, free: 2.688 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.436e-05/0.4038, allocations: 43.53 kB / 471.1 MB, free: 2.645 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.4041, allocations: 254.5 kB / 471.3 MB, free: 2.355 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.4042, allocations: 10.12 kB / 471.4 MB, free: 2.348 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.315e-05/0.4042, allocations: 20 kB / 471.4 MB, free: 2.328 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003322/0.4046, allocations: 165.3 kB / 471.5 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003701/0.4049, allocations: 208.8 kB / 471.7 MB, free: 1.953 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.405, allocations: 0 / 471.7 MB, free: 1.953 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.136e-05/0.405, allocations: 0 / 471.7 MB, free: 1.953 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.405, allocations: 8 kB / 471.7 MB, free: 1.945 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.4066, allocations: 1.006 MB / 472.8 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.4068, allocations: 89.7 kB / 472.8 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002069/0.407, allocations: 110.1 kB / 472.9 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.407, allocations: 7.938 kB / 473 MB, free: 0.668 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.407, allocations: 34.56 kB / 473 MB, free: 0.625 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.363e-06/0.407, allocations: 2.531 kB / 473 MB, free: 0.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002874/0.4073, allocations: 140.5 kB / 473.1 MB, free: 496 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.4074, allocations: 63.39 kB / 473.2 MB, free: 420 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.4075, allocations: 162.4 kB / 473.3 MB, free: 248 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.4076, allocations: 25.7 kB / 473.4 MB, free: 216 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.023e-05/0.4076, allocations: 179.7 kB / 473.6 MB, free: 32 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.454e-05/0.4077, allocations: 71.11 kB / 473.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.386e-06/0.4077, allocations: 0 / 473.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.89e-05/0.4078, allocations: 334.7 kB / 473.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.345e-05/0.4079, allocations: 48.56 kB / 474 MB, free: 15.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.408, allocations: 126.2 kB / 474.1 MB, free: 15.42 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001199/0.4082, allocations: 73 kB / 474.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4082, allocations: 0 / 474.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003174/0.4085, allocations: 206.4 kB / 474.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.4085, allocations: 4 kB / 474.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.4085, allocations: 4 kB / 474.4 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.4086, allocations: 8.25 kB / 474.4 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003074/0.4089, allocations: 71.89 kB / 474.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.4089, allocations: 11.84 kB / 474.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000187/0.4091, allocations: 23.83 kB / 474.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.4091, allocations: 16 kB / 474.5 MB, free: 15 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 8.653e-05/0.4092, allocations: 112.8 kB / 474.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.146e-05/0.4093, allocations: 20.88 kB / 474.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000259/0.4095, allocations: 154.3 kB / 474.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.4095, allocations: 4 kB / 474.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.4096, allocations: 0 / 474.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4096, allocations: 0 / 474.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006056/0.4102, allocations: 0.517 MB / 475.3 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.4102, allocations: 4 kB / 475.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003102/0.4105, allocations: 55.91 kB / 475.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.4105, allocations: 4 kB / 475.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.4105, allocations: 4.812 kB / 475.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.4106, allocations: 4 kB / 475.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.4106, allocations: 3.969 kB / 475.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003857/0.411, allocations: 340.3 kB / 475.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005328/0.4115, allocations: 0.7596 MB / 476.5 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.932e-05/0.4116, allocations: 100.9 kB / 476.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.548e-05/0.4116, allocations: 3.984 kB / 476.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.4118, allocations: 23.05 kB / 476.6 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.775e-05/0.4119, allocations: 15.89 kB / 476.6 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.4119, allocations: 8 kB / 476.6 MB, free: 12.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.523e-05/0.412, allocations: 130.7 kB / 476.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008949/0.4129, allocations: 83.69 kB / 476.9 MB, free: 12.54 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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.0001761/0.4131, allocations: 107.1 kB / 477 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002488/0.4133, allocations: 140.2 kB / 477.1 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.4133, allocations: 3.938 kB / 477.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.636e-05/0.4134, allocations: 74.95 kB / 477.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/0.4137, allocations: 12.81 kB / 477.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.4148, allocations: 0.6694 MB / 477.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004139/0.4153, allocations: 0.8091 MB / 478.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4153, allocations: 4 kB / 478.7 MB, free: 10.67 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat does not exist to compare? outputFormat=mat