Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_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 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 181.1 kB / 8.13 MB, free: 2.215 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.151/1.151, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0009749/0.0009751, allocations: 94.34 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09084/0.09184, allocations: 55.82 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.2666, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07719/0.3438, allocations: 78.59 MB / 465.6 MB, free: 8.188 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.3441, allocations: 67.97 kB / 465.7 MB, free: 8.121 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.01402/0.3581, allocations: 5.34 MB / 471 MB, free: 2.758 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.3581, allocations: 8 kB / 471 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.339e-05/0.3582, allocations: 47.45 kB / 471.1 MB, free: 2.703 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.3585, allocations: 251.6 kB / 471.3 MB, free: 2.418 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.3585, allocations: 11.94 kB / 471.3 MB, free: 2.406 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.541e-05/0.3586, allocations: 28.5 kB / 471.3 MB, free: 2.379 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003268/0.3589, allocations: 153.3 kB / 471.5 MB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00035/0.3593, allocations: 204.8 kB / 471.7 MB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.3593, allocations: 0 / 471.7 MB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.3593, allocations: 0 / 471.7 MB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.3594, allocations: 8 kB / 471.7 MB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.3609, allocations: 0.94 MB / 472.6 MB, free: 1.012 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.361, allocations: 94.67 kB / 472.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.782e-05/0.3611, allocations: 57.03 kB / 472.8 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.3612, allocations: 0 / 472.8 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.3612, allocations: 46.72 kB / 472.8 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.352e-06/0.3612, allocations: 4 kB / 472.8 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002707/0.3615, allocations: 117.5 kB / 473 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.708e-05/0.3615, allocations: 63.31 kB / 473 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.3616, allocations: 163.4 kB / 473.2 MB, free: 448 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.3617, allocations: 25.7 kB / 473.2 MB, free: 416 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.989e-05/0.3618, allocations: 175.8 kB / 473.4 MB, free: 236 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.3618, allocations: 70.95 kB / 473.4 MB, free: 164 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.614e-06/0.3618, allocations: 0 / 473.4 MB, free: 164 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3619, allocations: 334.8 kB / 473.8 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.936e-05/0.362, allocations: 40 kB / 473.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.3621, allocations: 98.5 kB / 473.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.997e-05/0.3622, allocations: 57.06 kB / 474 MB, free: 15.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3622, allocations: 4 kB / 474 MB, free: 15.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002825/0.3625, allocations: 190.5 kB / 474.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.3626, allocations: 8 kB / 474.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.3626, allocations: 3.906 kB / 474.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.3626, allocations: 4 kB / 474.2 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.3629, allocations: 69.53 kB / 474.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3629, allocations: 0 / 474.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000153/0.3631, allocations: 27.77 kB / 474.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.3631, allocations: 12 kB / 474.3 MB, free: 15.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 7.2e-05/0.3632, allocations: 108.8 kB / 474.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.3632, allocations: 15.81 kB / 474.4 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002573/0.3635, allocations: 158 kB / 474.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3635, allocations: 4.562 kB / 474.6 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.3635, allocations: 0 / 474.6 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.82e-06/0.3635, allocations: 0 / 474.6 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002683/0.3638, allocations: 269.9 kB / 474.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3638, allocations: 0 / 474.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000304/0.3641, allocations: 51.97 kB / 474.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3641, allocations: 5.812 kB / 474.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.3642, allocations: 7.906 kB / 474.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3642, allocations: 0 / 474.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3642, allocations: 0 / 474.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003269/0.3645, allocations: 299.1 kB / 475.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004598/0.365, allocations: 0.7137 MB / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.046e-05/0.365, allocations: 93.86 kB / 476 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.3651, allocations: 8.688 kB / 476 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/0.3653, allocations: 19.89 kB / 476 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.208e-05/0.3653, allocations: 7.984 kB / 476 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.3653, allocations: 7.984 kB / 476 MB, free: 13.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.219e-05/0.3654, allocations: 136.4 kB / 476.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008725/0.3663, allocations: 75.69 kB / 476.2 MB, free: 13.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.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 (19): * Single equations (assignments): 19 * 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.0001386/0.3665, allocations: 103.2 kB / 476.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002289/0.3667, allocations: 124.8 kB / 476.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3667, allocations: 4 kB / 476.5 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.028e-05/0.3668, allocations: 55.88 kB / 476.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.367, allocations: 24.42 kB / 476.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.3681, allocations: 0.6585 MB / 477.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003541/0.3685, allocations: 0.8058 MB / 478 MB, free: 11.41 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3685, allocations: 0 / 478 MB, free: 11.41 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat