Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",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.0009541/0.0009543, allocations: 183.8 kB / 8.138 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.144/1.144, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009049/0.0009049, allocations: 101.8 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0945/0.09543, allocations: 55.81 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1869/0.2824, allocations: 50.4 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07996/0.3624, allocations: 77.8 MB / 464.8 MB, free: 8.977 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.3626, allocations: 75.91 kB / 464.9 MB, free: 8.902 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.007478/0.3701, allocations: 2.909 MB / 467.8 MB, free: 5.961 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.3701, allocations: 8 kB / 467.8 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.975e-05/0.3702, allocations: 19.81 kB / 467.8 MB, free: 5.934 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002028/0.3704, allocations: 209.7 kB / 468 MB, free: 5.691 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.3705, allocations: 4 kB / 468 MB, free: 5.688 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.764e-05/0.3705, allocations: 8 kB / 468 MB, free: 5.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001376/0.3706, allocations: 61.91 kB / 468.1 MB, free: 5.621 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.3708, allocations: 87.31 kB / 468.2 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.3708, allocations: 0 / 468.2 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.3708, allocations: 0 / 468.2 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.3709, allocations: 4 kB / 468.2 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007819/0.3716, allocations: 0.5824 MB / 468.8 MB, free: 4.879 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002406/0.3719, allocations: 74.62 kB / 468.8 MB, free: 4.797 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.262e-05/0.372, allocations: 24.98 kB / 468.9 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.372, allocations: 4 kB / 468.9 MB, free: 4.766 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.736e-05/0.372, allocations: 30.56 kB / 468.9 MB, free: 4.727 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.432e-06/0.372, allocations: 5.594 kB / 468.9 MB, free: 4.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002862/0.3723, allocations: 106.3 kB / 469 MB, free: 4.609 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.3723, allocations: 51.41 kB / 469 MB, free: 4.547 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.496e-05/0.3724, allocations: 127.7 kB / 469.2 MB, free: 4.418 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.3725, allocations: 25.7 kB / 469.2 MB, free: 4.387 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.5e-05/0.3725, allocations: 120 kB / 469.3 MB, free: 4.262 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.3725, allocations: 15.72 kB / 469.3 MB, free: 4.246 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-06/0.3726, allocations: 7.938 kB / 469.3 MB, free: 4.238 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.36e-05/0.3727, allocations: 322.8 kB / 469.7 MB, free: 3.914 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.273e-05/0.3727, allocations: 16 kB / 469.7 MB, free: 3.898 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.401e-05/0.3727, allocations: 34.58 kB / 469.7 MB, free: 3.855 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.853e-05/0.3728, allocations: 19.98 kB / 469.7 MB, free: 3.836 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3728, allocations: 2.062 kB / 469.7 MB, free: 3.836 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002308/0.373, allocations: 124.8 kB / 469.8 MB, free: 3.707 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.3731, allocations: 7.984 kB / 469.9 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.3731, allocations: 0.9375 kB / 469.9 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001638/0.3732, allocations: 32.84 kB / 469.9 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.941e-05/0.3733, allocations: 11.98 kB / 469.9 MB, free: 3.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.3745, allocations: 1.429 MB / 471.3 MB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.672e-05/0.3746, allocations: 16.02 kB / 471.3 MB, free: 2.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.3746, allocations: 8 kB / 471.4 MB, free: 2.086 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 6.726e-05/0.3747, allocations: 101 kB / 471.4 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.354e-05/0.3747, allocations: 7.906 kB / 471.5 MB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.203e-05/0.3748, allocations: 13.19 kB / 471.5 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3748, allocations: 0 / 471.5 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.92e-07/0.3748, allocations: 0 / 471.5 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.3748, allocations: 3.984 kB / 471.5 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001717/0.375, allocations: 186 kB / 471.7 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.375, allocations: 5.375 kB / 471.7 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.971e-05/0.375, allocations: 4 kB / 471.7 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001317/0.3752, allocations: 40.83 kB / 471.7 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.3752, allocations: 0 / 471.7 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.3763, allocations: 1.429 MB / 473.1 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3763, allocations: 0 / 473.1 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002463/0.3766, allocations: 206.6 kB / 473.3 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003489/0.3769, allocations: 0.5679 MB / 473.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.04e-05/0.377, allocations: 89.02 kB / 474 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.377, allocations: 0 / 474 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.3771, allocations: 8.422 kB / 474 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.737e-05/0.3771, allocations: 4 kB / 474 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.3772, allocations: 0 / 474 MB, free: 15.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.349e-05/0.3772, allocations: 110.5 kB / 474.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008837/0.3781, allocations: 39.84 kB / 474.1 MB, free: 15.07 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001013/0.3782, allocations: 103.2 kB / 474.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002595/0.3785, allocations: 153.8 kB / 474.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3785, allocations: 0 / 474.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000153/0.3787, allocations: 137.7 kB / 474.5 MB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001805/0.3788, allocations: 13.16 kB / 474.5 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003436/0.3792, allocations: 148 kB / 474.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002733/0.3795, allocations: 0.7224 MB / 475.4 MB, free: 13.73 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3795, allocations: 0 / 475.4 MB, free: 13.73 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat