Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",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.00114/0.00114, allocations: 179.9 kB / 8.474 MB, free: 1.879 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.12/1.12, allocations: 205.2 MB / 214.1 MB, free: 5.074 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.0009441/0.0009441, allocations: 97.95 kB / 262.1 MB, free: 5.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1694/0.1704, allocations: 52.96 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07156/0.242, allocations: 47.58 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2173/0.4594, allocations: 76.13 MB / 438.8 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001652/0.4596, allocations: 70.67 kB / 438.8 MB, free: 10.71 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.008758/0.4684, allocations: 3.251 MB / 442.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.4684, allocations: 7.625 kB / 442.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.304e-05/0.4685, allocations: 16.44 kB / 442.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.4686, allocations: 190.5 kB / 442.3 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.4687, allocations: 3.812 kB / 442.3 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.4687, allocations: 12.53 kB / 442.3 MB, free: 9.898 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000147/0.4689, allocations: 61.05 kB / 442.4 MB, free: 9.898 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001808/0.469, allocations: 126.5 kB / 442.5 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.4691, allocations: 3.906 kB / 442.5 MB, free: 9.832 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.4691, allocations: 4.641 kB / 442.5 MB, free: 9.828 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.4691, allocations: 3.844 kB / 442.5 MB, free: 9.828 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000712/0.4698, allocations: 474 kB / 443 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.664e-05/0.4699, allocations: 66.05 kB / 443 MB, free: 9.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.47, allocations: 55.56 kB / 443.1 MB, free: 9.508 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.4701, allocations: 7.844 kB / 443.1 MB, free: 9.504 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.506e-05/0.4701, allocations: 32.84 kB / 443.1 MB, free: 9.465 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.4701, allocations: 0 / 443.1 MB, free: 9.465 MB / 314.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001951/0.4703, allocations: 80.48 kB / 443.2 MB, free: 9.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.4703, allocations: 107.5 kB / 443.3 MB, free: 9.301 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.88e-05/0.4704, allocations: 135.4 kB / 443.4 MB, free: 9.211 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.4704, allocations: 25.7 kB / 443.5 MB, free: 9.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.824e-05/0.4705, allocations: 111.7 kB / 443.6 MB, free: 9.086 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.4705, allocations: 25.61 kB / 443.6 MB, free: 9.066 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.533e-06/0.4705, allocations: 3.938 kB / 443.6 MB, free: 9.062 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.636e-05/0.4706, allocations: 321.7 kB / 443.9 MB, free: 8.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.692e-05/0.4706, allocations: 27.3 kB / 443.9 MB, free: 8.746 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.295e-05/0.4707, allocations: 69.52 kB / 444 MB, free: 8.695 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.79e-05/0.4708, allocations: 32.44 kB / 444 MB, free: 8.691 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4708, allocations: 0 / 444 MB, free: 8.691 MB / 314.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001722/0.471, allocations: 114 kB / 444.2 MB, free: 8.648 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.471, allocations: 3.938 kB / 444.2 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.471, allocations: 4 kB / 444.2 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.471, allocations: 4.469 kB / 444.2 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005981/0.4716, allocations: 85.89 kB / 444.3 MB, free: 8.641 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009694/0.4726, allocations: 1.338 MB / 445.6 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001749/0.4728, allocations: 31.47 kB / 445.6 MB, free: 7.316 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.4728, allocations: 4.625 kB / 445.6 MB, free: 7.316 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 5.937e-05/0.4729, allocations: 101.9 kB / 445.7 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.587e-05/0.4729, allocations: 15.31 kB / 445.7 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002836/0.4732, allocations: 121.1 kB / 445.9 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.4732, allocations: 0 / 445.9 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.704e-06/0.4732, allocations: 0.6562 kB / 445.9 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4732, allocations: 0.5156 kB / 445.9 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004918/0.4737, allocations: 403.5 kB / 446.3 MB, free: 6.871 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.4737, allocations: 3.688 kB / 446.3 MB, free: 6.871 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.4739, allocations: 26.73 kB / 446.3 MB, free: 6.867 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002311/0.4741, allocations: 37.39 kB / 446.3 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.4741, allocations: 8.516 kB / 446.3 MB, free: 6.855 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006925/0.4748, allocations: 1.242 MB / 447.6 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4749, allocations: 0 / 447.6 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003176/0.4752, allocations: 258.7 kB / 447.8 MB, free: 5.477 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004458/0.4756, allocations: 0.6626 MB / 448.5 MB, free: 20.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.457e-05/0.4757, allocations: 97.61 kB / 448.6 MB, free: 20.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.4757, allocations: 0.5625 kB / 448.6 MB, free: 20.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.4759, allocations: 19.44 kB / 448.6 MB, free: 20.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.27e-05/0.476, allocations: 6.672 kB / 448.6 MB, free: 20.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.476, allocations: 0.9844 kB / 448.6 MB, free: 20.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.891e-05/0.476, allocations: 115.7 kB / 448.7 MB, free: 20.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008276/0.4769, allocations: 42.84 kB / 448.8 MB, free: 20.73 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001375/0.477, allocations: 107.7 kB / 448.9 MB, free: 20.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008672/0.4779, allocations: 142.8 kB / 449 MB, free: 20.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4779, allocations: 4.062 kB / 449 MB, free: 20.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000221/0.4781, allocations: 138.9 kB / 449.1 MB, free: 20.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001673/0.4783, allocations: 6.438 kB / 449.2 MB, free: 20.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.4796, allocations: 432.8 kB / 449.6 MB, free: 20.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/0.48, allocations: 0.7419 MB / 450.3 MB, free: 19.61 MB / 330.7 MB Notification: Performance of SimCode: time 3.51e-07/0.48, allocations: 0 / 450.3 MB, free: 19.61 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat