Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001299/0.001299, allocations: 196.2 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000923/0.000923, allocations: 97.03 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1825/0.1825, allocations: 45.14 MB / 383.3 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.222/0.4045, allocations: 69.37 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09431/0.4989, allocations: 63.24 MB / 0.5039 GB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6784/1.177, allocations: 336.7 MB / 0.8327 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/1.178, allocations: 83.78 kB / 0.8328 GB, free: 137.4 MB / 0.5261 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.4781/1.656, allocations: 146.4 MB / 0.9758 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/1.656, allocations: 14.39 kB / 0.9758 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006755/1.656, allocations: 109.6 kB / 0.9759 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/1.658, allocations: 0.6837 MB / 0.9766 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.038e-05/1.658, allocations: 85.58 kB / 0.9767 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/1.658, allocations: 32.72 kB / 0.9767 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001315/1.66, allocations: 0.8541 MB / 0.9775 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/1.661, allocations: 0.9468 MB / 0.9785 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/1.661, allocations: 6.469 kB / 0.9785 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/1.661, allocations: 6.781 kB / 0.9785 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.947e-05/1.661, allocations: 55.44 kB / 0.9785 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005443/1.666, allocations: 3.907 MB / 0.9823 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006899/1.667, allocations: 0.5317 MB / 0.9829 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005032/1.668, allocations: 408.9 kB / 0.9832 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002877/1.671, allocations: 2.392 MB / 0.9856 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005456/1.671, allocations: 498.5 kB / 0.9861 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.505e-06/1.671, allocations: 0 / 0.9861 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.006865/1.678, allocations: 2.508 MB / 0.9885 GB, free: 122.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/1.678, allocations: 242.8 kB / 0.9887 GB, free: 122.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006162/1.679, allocations: 0.5552 MB / 0.9893 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.183e-05/1.679, allocations: 29.64 kB / 0.9893 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/1.679, allocations: 339.4 kB / 0.9896 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/1.679, allocations: 168.1 kB / 0.9898 GB, free: 122 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.82e-05/1.679, allocations: 2.812 kB / 0.9898 GB, free: 122 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.97e-05/1.679, allocations: 388.5 kB / 0.9902 GB, free: 121.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004687/1.68, allocations: 369.1 kB / 0.9905 GB, free: 121.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005602/1.68, allocations: 0.5882 MB / 0.9911 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002527/1.683, allocations: 0.8166 MB / 0.9919 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/1.683, allocations: 3.125 kB / 0.9919 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003825/1.687, allocations: 1.523 MB / 0.9934 GB, free: 121.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003949/1.687, allocations: 2.443 MB / 0.9958 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/1.687, allocations: 6.031 kB / 0.9958 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000693/1.688, allocations: 318.2 kB / 0.9961 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006043/1.688, allocations: 149.9 kB / 0.9962 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/1.69, allocations: 1.67 MB / 0.9979 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007606/1.691, allocations: 35.55 kB / 0.9979 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/1.691, allocations: 39.89 kB / 0.9979 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/1.691, allocations: 9.219 kB / 0.9979 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003417/1.695, allocations: 1.388 MB / 0.9993 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/1.695, allocations: 7.75 kB / 0.9993 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006827/1.695, allocations: 317.2 kB / 0.9996 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005885/1.696, allocations: 152.1 kB / 0.9997 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001828/1.698, allocations: 1.616 MB / 1.001 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000699/1.699, allocations: 34.2 kB / 1.001 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.005e-05/1.699, allocations: 42 kB / 1.001 GB, free: 116.6 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.0002526/1.699, allocations: 170.5 kB / 1.002 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/1.699, allocations: 77.69 kB / 1.002 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003109/1.702, allocations: 1.223 MB / 1.003 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/1.702, allocations: 3.781 kB / 1.003 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/1.702, allocations: 3.906 kB / 1.003 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/1.702, allocations: 7.578 kB / 1.003 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00371/1.706, allocations: 2 MB / 1.005 GB, free: 116 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/1.706, allocations: 7 kB / 1.005 GB, free: 116 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004286/1.706, allocations: 82.39 kB / 1.005 GB, free: 116 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006226/1.707, allocations: 307.3 kB / 1.005 GB, free: 116 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.994e-05/1.707, allocations: 12.52 kB / 1.005 GB, free: 116 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001885/1.709, allocations: 1.643 MB / 1.007 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/1.709, allocations: 3.844 kB / 1.007 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002998/1.712, allocations: 1.691 MB / 1.008 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003679/1.716, allocations: 2.591 MB / 1.011 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004937/1.716, allocations: 257.9 kB / 1.011 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000182/1.716, allocations: 6.344 kB / 1.011 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006476/1.717, allocations: 43.38 kB / 1.011 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/1.717, allocations: 43.39 kB / 1.011 GB, free: 114 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.122e-05/1.717, allocations: 30.78 kB / 1.011 GB, free: 114 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0004973/1.718, allocations: 434.6 kB / 1.012 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003287/1.721, allocations: 0.7547 MB / 1.012 GB, free: 113.8 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.001507/1.723, allocations: 0.6425 MB / 1.013 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002498/1.725, allocations: 1.412 MB / 1.014 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/1.725, allocations: 3.344 kB / 1.014 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008156/1.726, allocations: 451.7 kB / 1.015 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/1.727, allocations: 259.1 kB / 1.015 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/1.73, allocations: 1.29 MB / 1.016 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006955/1.731, allocations: 1.118 MB / 1.018 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of SimCode: time 2.91e-07/1.731, allocations: 0 / 1.018 GB, free: 112.5 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)