Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001105/0.001105, allocations: 195.7 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.151/1.151, allocations: 225.5 MB / 234.4 MB, free: 3.488 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008307/0.0008308, allocations: 86.47 kB / 286.3 MB, free: 5.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09357/0.09443, allocations: 56.9 MB / 343.2 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08462/0.1791, allocations: 51.48 MB / 394.7 MB, free: 5.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2239/0.403, allocations: 79.4 MB / 474.1 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001702/0.4032, allocations: 72.02 kB / 474.2 MB, free: 12.53 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.01249/0.4157, allocations: 5.444 MB / 479.6 MB, free: 9.125 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.4157, allocations: 8 kB / 479.6 MB, free: 9.117 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.668e-05/0.4158, allocations: 39.53 kB / 479.7 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002465/0.4161, allocations: 255.5 kB / 479.9 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.4161, allocations: 12 kB / 479.9 MB, free: 8.797 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.337e-05/0.4161, allocations: 23.38 kB / 480 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002902/0.4164, allocations: 164.3 kB / 480.1 MB, free: 8.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003282/0.4168, allocations: 210.1 kB / 480.3 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.4168, allocations: 0 / 480.3 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.446e-05/0.4168, allocations: 0 / 480.3 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.4168, allocations: 8 kB / 480.3 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.4182, allocations: 1.007 MB / 481.3 MB, free: 7.621 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.4184, allocations: 94.52 kB / 481.4 MB, free: 7.555 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.4185, allocations: 112.9 kB / 481.5 MB, free: 7.473 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.4186, allocations: 4 kB / 481.5 MB, free: 7.469 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.4186, allocations: 37.86 kB / 481.6 MB, free: 7.426 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.4186, allocations: 0 / 481.6 MB, free: 7.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002521/0.4189, allocations: 130.4 kB / 481.7 MB, free: 7.316 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.542e-05/0.4189, allocations: 60.27 kB / 481.8 MB, free: 7.246 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.419, allocations: 161 kB / 481.9 MB, free: 7.102 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.419, allocations: 28.7 kB / 481.9 MB, free: 7.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.754e-05/0.4191, allocations: 184.9 kB / 482.1 MB, free: 6.898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.147e-05/0.4191, allocations: 65.58 kB / 482.2 MB, free: 6.844 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.405e-06/0.4191, allocations: 0 / 482.2 MB, free: 6.844 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.598e-05/0.4192, allocations: 336.8 kB / 482.5 MB, free: 6.516 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.784e-05/0.4193, allocations: 45.5 kB / 482.6 MB, free: 6.488 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.771e-05/0.4194, allocations: 125.1 kB / 482.7 MB, free: 6.359 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.4195, allocations: 67.78 kB / 482.8 MB, free: 6.312 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4195, allocations: 0 / 482.8 MB, free: 6.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002807/0.4198, allocations: 210.3 kB / 483 MB, free: 6.141 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.4198, allocations: 8 kB / 483 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.4198, allocations: 256 / 483 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.4198, allocations: 11.91 kB / 483 MB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/0.4201, allocations: 71.91 kB / 483 MB, free: 6.051 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.4201, allocations: 7.938 kB / 483.1 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.4203, allocations: 24.7 kB / 483.1 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.4203, allocations: 15.5 kB / 483.1 MB, free: 6.008 MB / 346.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 5.882e-05/0.4204, allocations: 116.8 kB / 483.2 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.285e-05/0.4204, allocations: 15.81 kB / 483.2 MB, free: 5.871 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002326/0.4207, allocations: 155.8 kB / 483.4 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.4207, allocations: 0 / 483.4 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4207, allocations: 3.906 kB / 483.4 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.4207, allocations: 0 / 483.4 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004954/0.4212, allocations: 0.5206 MB / 483.9 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.4212, allocations: 0 / 483.9 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003068/0.4215, allocations: 59.91 kB / 484 MB, free: 5.199 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.4215, allocations: 0 / 484 MB, free: 5.199 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.4216, allocations: 11.17 kB / 484 MB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.4216, allocations: 4.406 kB / 484 MB, free: 5.188 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.4216, allocations: 4.062 kB / 484 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003036/0.4219, allocations: 339.5 kB / 484.3 MB, free: 4.867 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003814/0.4223, allocations: 0.7603 MB / 485.1 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.65e-05/0.4223, allocations: 94.66 kB / 485.2 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.4224, allocations: 11.89 kB / 485.2 MB, free: 4.031 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.4226, allocations: 19.98 kB / 485.2 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.611e-05/0.4226, allocations: 11.97 kB / 485.2 MB, free: 4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.4227, allocations: 7.938 kB / 485.2 MB, free: 3.996 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.975e-05/0.4227, allocations: 140.6 kB / 485.4 MB, free: 3.879 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008699/0.4236, allocations: 75.62 kB / 485.4 MB, free: 3.805 MB / 346.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.0001085/0.4237, allocations: 111.1 kB / 485.5 MB, free: 3.688 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002127/0.4239, allocations: 144.9 kB / 485.7 MB, free: 3.582 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4239, allocations: 0 / 485.7 MB, free: 3.582 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.032e-05/0.424, allocations: 68.17 kB / 485.7 MB, free: 3.531 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002202/0.4243, allocations: 18.09 kB / 485.8 MB, free: 3.523 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000942/0.4252, allocations: 0.6693 MB / 486.4 MB, free: 2.875 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.4254, allocations: 0.8044 MB / 487.2 MB, free: 2.051 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4255, allocations: 11.94 kB / 487.2 MB, free: 2.039 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat does not exist to compare? outputFormat=mat