Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",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.0009873/0.0009874, allocations: 181.9 kB / 8.52 MB, free: 1.82 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.167/1.167, allocations: 221.4 MB / 230.3 MB, free: 7.664 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.0009602/0.0009602, allocations: 89.84 kB / 281.2 MB, free: 5.473 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1589/0.1589, allocations: 44.15 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.189/0.3479, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09981/0.4477, allocations: 61.91 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.465/5.913, allocations: 3.409 GB / 3.903 GB, free: 169.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/5.913, allocations: 88.16 kB / 3.903 GB, free: 169.1 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.8121/6.725, allocations: 299.1 MB / 4.195 GB, free: 65 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/6.725, allocations: 13.19 kB / 4.195 GB, free: 64.99 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003553/6.725, allocations: 55.44 kB / 4.196 GB, free: 64.94 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005996/6.726, allocations: 371 kB / 4.196 GB, free: 64.54 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/6.726, allocations: 12 kB / 4.196 GB, free: 64.53 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.934e-05/6.726, allocations: 24 kB / 4.196 GB, free: 64.51 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006387/6.727, allocations: 441.2 kB / 4.196 GB, free: 64.08 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005878/6.727, allocations: 444 kB / 4.197 GB, free: 63.62 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/6.727, allocations: 3.938 kB / 4.197 GB, free: 63.61 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.668e-05/6.727, allocations: 0 / 4.197 GB, free: 63.61 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/6.727, allocations: 8 kB / 4.197 GB, free: 63.61 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002236/6.73, allocations: 2.064 MB / 4.199 GB, free: 61.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004623/6.73, allocations: 393 kB / 4.199 GB, free: 60.96 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/6.73, allocations: 138.6 kB / 4.199 GB, free: 60.82 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005075/6.731, allocations: 0.7792 MB / 4.2 GB, free: 59.88 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/6.731, allocations: 46.5 kB / 4.2 GB, free: 59.82 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/6.731, allocations: 0 / 4.2 GB, free: 59.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=28): time 0.0008183/6.732, allocations: 377.4 kB / 4.2 GB, free: 59.45 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.068e-05/6.732, allocations: 110.8 kB / 4.201 GB, free: 59.31 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/6.732, allocations: 259.5 kB / 4.201 GB, free: 59.05 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/6.732, allocations: 25.7 kB / 4.201 GB, free: 59.02 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.719e-05/6.732, allocations: 211.6 kB / 4.201 GB, free: 58.81 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 4.6e-05/6.732, allocations: 98.5 kB / 4.201 GB, free: 58.71 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.212e-05/6.732, allocations: 4 kB / 4.201 GB, free: 58.71 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.646e-05/6.732, allocations: 338.8 kB / 4.201 GB, free: 58.37 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/6.732, allocations: 128.7 kB / 4.202 GB, free: 58.24 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/6.733, allocations: 233.9 kB / 4.202 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005722/6.733, allocations: 251.7 kB / 4.202 GB, free: 57.72 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/6.733, allocations: 4 kB / 4.202 GB, free: 57.71 MB / 0.5105 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009385/6.734, allocations: 0.5074 MB / 4.203 GB, free: 57.21 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/6.734, allocations: 8.375 kB / 4.203 GB, free: 57.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/6.734, allocations: 8 kB / 4.203 GB, free: 57.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/6.734, allocations: 4 kB / 4.203 GB, free: 57.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003874/6.735, allocations: 95.77 kB / 4.203 GB, free: 57.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/6.735, allocations: 7.984 kB / 4.203 GB, free: 57.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003529/6.735, allocations: 47.58 kB / 4.203 GB, free: 57.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-05/6.735, allocations: 20 kB / 4.203 GB, free: 57.02 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * 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 9.22e-05/6.735, allocations: 112.9 kB / 4.203 GB, free: 56.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/6.735, allocations: 35.53 kB / 4.203 GB, free: 56.87 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007273/6.736, allocations: 418.7 kB / 4.203 GB, free: 56.44 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/6.736, allocations: 0 / 4.203 GB, free: 56.44 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/6.736, allocations: 4.188 kB / 4.203 GB, free: 56.43 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/6.736, allocations: 0 / 4.203 GB, free: 56.43 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001437/6.737, allocations: 1.368 MB / 4.205 GB, free: 54.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/6.737, allocations: 4 kB / 4.205 GB, free: 54.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002416/6.738, allocations: 51.91 kB / 4.205 GB, free: 54.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/6.738, allocations: 8.562 kB / 4.205 GB, free: 54.89 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/6.738, allocations: 12 kB / 4.205 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.87e-06/6.738, allocations: 7.938 kB / 4.205 GB, free: 54.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/6.738, allocations: 8 kB / 4.205 GB, free: 54.86 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005475/6.738, allocations: 0.7552 MB / 4.205 GB, free: 53.91 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007797/6.739, allocations: 1.22 MB / 4.207 GB, free: 52.48 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 8.898e-05/6.739, allocations: 132.5 kB / 4.207 GB, free: 52.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.813e-05/6.739, allocations: 11.98 kB / 4.207 GB, free: 52.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003944/6.74, allocations: 19.98 kB / 4.207 GB, free: 52.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.501e-05/6.74, allocations: 35.83 kB / 4.207 GB, free: 52.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/6.74, allocations: 12 kB / 4.207 GB, free: 52.26 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.000178/6.74, allocations: 227.1 kB / 4.207 GB, free: 52.04 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002082/6.742, allocations: 0.511 MB / 4.208 GB, free: 51.53 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * 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.001998/6.744, allocations: 1.251 MB / 4.209 GB, free: 50.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004757/6.745, allocations: 359.1 kB / 4.209 GB, free: 50.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/6.745, allocations: 0 / 4.209 GB, free: 50.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001765/6.745, allocations: 131.7 kB / 4.209 GB, free: 49.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008209/6.746, allocations: 157.2 kB / 4.209 GB, free: 49.77 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/6.747, allocations: 0.5789 MB / 4.21 GB, free: 49.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004147/6.747, allocations: 0.8871 MB / 4.211 GB, free: 48.19 MB / 0.5105 GB Notification: Performance of SimCode: time 5.61e-07/6.747, allocations: 0 / 4.211 GB, free: 48.19 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1)