Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.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.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",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.001048/0.001048, allocations: 175 kB / 8.516 MB, free: 1.855 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.244/1.244, allocations: 221.4 MB / 230.3 MB, free: 7.613 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.0009418/0.0009418, allocations: 86.22 kB / 281.2 MB, free: 5.441 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.1757/0.1757, allocations: 44.15 MB / 376.1 MB, free: 3.195 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2307/0.4065, allocations: 68.03 MB / 444.1 MB, free: 15.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.5253, allocations: 61.92 MB / 0.4942 GB, free: 1.492 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7133/1.239, allocations: 335.7 MB / 0.822 GB, free: 51.33 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/1.239, allocations: 86.78 kB / 0.8221 GB, free: 51.29 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.5293/1.768, allocations: 146.6 MB / 0.9653 GB, free: 148.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/1.768, allocations: 9.875 kB / 0.9653 GB, free: 148.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006672/1.769, allocations: 108.9 kB / 0.9654 GB, free: 148.4 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001881/1.771, allocations: 0.6872 MB / 0.966 GB, free: 148 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/1.771, allocations: 88.34 kB / 0.9661 GB, free: 148 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001813/1.771, allocations: 40.69 kB / 0.9662 GB, free: 147.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001609/1.773, allocations: 0.8466 MB / 0.967 GB, free: 147.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001894/1.775, allocations: 0.9504 MB / 0.9679 GB, free: 147.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/1.775, allocations: 1.672 kB / 0.9679 GB, free: 147.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/1.775, allocations: 2.938 kB / 0.9679 GB, free: 147.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.339e-05/1.775, allocations: 61.78 kB / 0.968 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007263/1.782, allocations: 3.909 MB / 0.9718 GB, free: 144.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008942/1.783, allocations: 0.5401 MB / 0.9723 GB, free: 144.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006029/1.784, allocations: 409.1 kB / 0.9727 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003579/1.787, allocations: 2.395 MB / 0.9751 GB, free: 142.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006982/1.788, allocations: 0.4921 MB / 0.9755 GB, free: 142.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 3.096e-06/1.788, allocations: 0 / 0.9755 GB, free: 142.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.007758/1.796, allocations: 2.509 MB / 0.978 GB, free: 140.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/1.796, allocations: 245.3 kB / 0.9782 GB, free: 140.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009238/1.797, allocations: 0.5561 MB / 0.9788 GB, free: 140.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.133e-05/1.797, allocations: 25.7 kB / 0.9788 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/1.797, allocations: 339.6 kB / 0.9791 GB, free: 140 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/1.797, allocations: 170.4 kB / 0.9793 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/1.797, allocations: 5.375 kB / 0.9793 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000116/1.798, allocations: 385.6 kB / 0.9796 GB, free: 139.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005711/1.798, allocations: 360.1 kB / 0.98 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006881/1.799, allocations: 0.5909 MB / 0.9806 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0024/1.801, allocations: 0.7632 MB / 0.9813 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/1.801, allocations: 5.078 kB / 0.9813 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003626/1.805, allocations: 1.478 MB / 0.9828 GB, free: 137.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004314/1.805, allocations: 2.441 MB / 0.9851 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/1.805, allocations: 8 kB / 0.9851 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007046/1.806, allocations: 317.5 kB / 0.9855 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/1.807, allocations: 147.8 kB / 0.9856 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001969/1.809, allocations: 1.67 MB / 0.9872 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009119/1.81, allocations: 32.27 kB / 0.9873 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/1.81, allocations: 47.98 kB / 0.9873 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.677e-06/1.81, allocations: 4 kB / 0.9873 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003051/1.813, allocations: 1.335 MB / 0.9886 GB, free: 131 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/1.813, allocations: 12.16 kB / 0.9886 GB, free: 131 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006403/1.813, allocations: 305.5 kB / 0.9889 GB, free: 130.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005676/1.814, allocations: 159.7 kB / 0.9891 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/1.816, allocations: 1.612 MB / 0.9906 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008496/1.817, allocations: 32.14 kB / 0.9907 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.072e-05/1.817, allocations: 43.98 kB / 0.9907 GB, free: 128.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002774/1.817, allocations: 180 kB / 0.9909 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001958/1.817, allocations: 75.16 kB / 0.991 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002979/1.82, allocations: 1.207 MB / 0.9921 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/1.82, allocations: 7.906 kB / 0.9921 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/1.82, allocations: 4 kB / 0.9921 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/1.82, allocations: 7.984 kB / 0.9922 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003822/1.824, allocations: 1.995 MB / 0.9941 GB, free: 125.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/1.824, allocations: 64 / 0.9941 GB, free: 125.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004192/1.825, allocations: 87.89 kB / 0.9942 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006345/1.825, allocations: 313.3 kB / 0.9945 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.898e-05/1.825, allocations: 11.98 kB / 0.9945 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001825/1.827, allocations: 1.635 MB / 0.9961 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/1.827, allocations: 0 / 0.9961 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002952/1.83, allocations: 1.699 MB / 0.9977 GB, free: 121.5 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003515/1.834, allocations: 2.597 MB / 1 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005569/1.834, allocations: 256.8 kB / 1.001 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002631/1.834, allocations: 11.98 kB / 1.001 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007196/1.835, allocations: 35.94 kB / 1.001 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/1.835, allocations: 48.36 kB / 1.001 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.037e-05/1.835, allocations: 27.98 kB / 1.001 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.000533/1.836, allocations: 435.1 kB / 1.001 GB, free: 118 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003743/1.84, allocations: 0.7337 MB / 1.002 GB, free: 117.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002325/1.842, allocations: 0.6293 MB / 1.002 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002836/1.845, allocations: 1.413 MB / 1.004 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.845, allocations: 0 / 1.004 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008381/1.846, allocations: 451.1 kB / 1.004 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/1.847, allocations: 264.9 kB / 1.004 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003161/1.85, allocations: 1.298 MB / 1.006 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007276/1.851, allocations: 1.115 MB / 1.007 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of SimCode: time 3.21e-07/1.851, allocations: 0 / 1.007 GB, free: 112.1 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)