Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier",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.0009825/0.0009829, allocations: 180.4 kB / 8.476 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.048/1.048, allocations: 205.2 MB / 214.1 MB, free: 5.102 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.0008729/0.0008728, allocations: 90.52 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.146/0.1469, allocations: 52.96 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06197/0.2089, allocations: 47.57 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2472/0.4561, allocations: 77.23 MB / 439.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/0.4564, allocations: 67.39 kB / 439.9 MB, free: 10.77 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.01102/0.4674, allocations: 4.122 MB / 444 MB, free: 10.06 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.4674, allocations: 7.812 kB / 444.1 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.761e-05/0.4675, allocations: 27.06 kB / 444.1 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.4677, allocations: 234.9 kB / 444.3 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.4678, allocations: 7.812 kB / 444.3 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.4678, allocations: 11.72 kB / 444.3 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002343/0.468, allocations: 124.4 kB / 444.4 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002572/0.4683, allocations: 150.7 kB / 444.6 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.4683, allocations: 0.75 kB / 444.6 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.239e-05/0.4684, allocations: 3.844 kB / 444.6 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.4684, allocations: 3.969 kB / 444.6 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.4695, allocations: 0.8145 MB / 445.4 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.4697, allocations: 94.95 kB / 445.5 MB, free: 9.281 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.4698, allocations: 85.83 kB / 445.6 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.4699, allocations: 3.906 kB / 445.6 MB, free: 9.27 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.62e-05/0.4699, allocations: 44.7 kB / 445.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 1.763e-06/0.4699, allocations: 0 / 445.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005929/0.4705, allocations: 196.4 kB / 445.8 MB, free: 9.172 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.546e-05/0.4705, allocations: 52.11 kB / 445.9 MB, free: 9.109 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.4706, allocations: 152.4 kB / 446 MB, free: 9.012 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.4707, allocations: 25.7 kB / 446.1 MB, free: 8.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.258e-05/0.4707, allocations: 132.5 kB / 446.2 MB, free: 8.871 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.007e-05/0.4707, allocations: 62.02 kB / 446.2 MB, free: 8.832 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.805e-06/0.4708, allocations: 0 / 446.2 MB, free: 8.832 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.582e-05/0.4708, allocations: 330.2 kB / 446.6 MB, free: 8.516 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.937e-05/0.4709, allocations: 41.14 kB / 446.6 MB, free: 8.516 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.906e-05/0.471, allocations: 58.7 kB / 446.7 MB, free: 8.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.4712, allocations: 69.75 kB / 446.7 MB, free: 8.492 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.809e-06/0.4712, allocations: 0 / 446.7 MB, free: 8.492 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004127/0.4716, allocations: 220.4 kB / 447 MB, free: 8.434 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.4716, allocations: 4.625 kB / 447 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.4716, allocations: 0 / 447 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000565/0.4722, allocations: 101.2 kB / 447.1 MB, free: 8.422 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.4724, allocations: 39.48 kB / 447.1 MB, free: 8.414 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004759/0.4728, allocations: 0.6275 MB / 447.7 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.473, allocations: 17.17 kB / 447.7 MB, free: 7.883 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.473, allocations: 8.312 kB / 447.7 MB, free: 7.883 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 6.287e-05/0.4731, allocations: 108.8 kB / 447.9 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.126e-05/0.4731, allocations: 16.22 kB / 447.9 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004365/0.4736, allocations: 211.9 kB / 448.1 MB, free: 7.711 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.4736, allocations: 8 kB / 448.1 MB, free: 7.703 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.4736, allocations: 0 / 448.1 MB, free: 7.703 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.4736, allocations: 5.188 kB / 448.1 MB, free: 7.703 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007961/0.4744, allocations: 0.5406 MB / 448.6 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.4744, allocations: 0 / 448.6 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.4746, allocations: 31.77 kB / 448.7 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004647/0.4751, allocations: 102.2 kB / 448.8 MB, free: 7.398 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.4751, allocations: 6 kB / 448.8 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004525/0.4756, allocations: 0.642 MB / 449.4 MB, free: 6.871 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4756, allocations: 4.641 kB / 449.4 MB, free: 6.871 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005333/0.4761, allocations: 393.4 kB / 449.8 MB, free: 6.684 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006436/0.4768, allocations: 0.8215 MB / 450.6 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.502e-05/0.4768, allocations: 97.81 kB / 450.7 MB, free: 6.016 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.4769, allocations: 0.75 kB / 450.7 MB, free: 6.016 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.477, allocations: 9.562 kB / 450.7 MB, free: 6.016 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.4771, allocations: 8.297 kB / 450.7 MB, free: 6.016 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.4771, allocations: 10.72 kB / 450.7 MB, free: 6.016 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.171e-05/0.4772, allocations: 118.9 kB / 450.9 MB, free: 5.938 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008726/0.4781, allocations: 63.11 kB / 450.9 MB, free: 5.922 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001591/0.4782, allocations: 114.4 kB / 451 MB, free: 5.828 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003419/0.4786, allocations: 123.8 kB / 451.2 MB, free: 5.824 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4786, allocations: 0 / 451.2 MB, free: 5.824 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.4787, allocations: 76.23 kB / 451.2 MB, free: 5.816 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.479, allocations: 19.88 kB / 451.2 MB, free: 5.812 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007833/0.4798, allocations: 369.3 kB / 451.6 MB, free: 5.602 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.48, allocations: 0.7604 MB / 452.4 MB, free: 4.902 MB / 314.7 MB Notification: Performance of SimCode: time 2.91e-07/0.48, allocations: 4 kB / 452.4 MB, free: 4.898 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat