Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [: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.2+maint.om/package.mo): time 0.002177/0.002177, allocations: 183.2 kB / 7.458 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.228/1.228, allocations: 194.2 MB / 202.1 MB, free: 8.648 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00193/0.001929, allocations: 121.2 kB / 247.1 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1659/0.1659, allocations: 39.94 MB / 331.9 MB, free: 4.934 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.605e-06/7.695e-06, allocations: 4 kB / 392.8 MB, free: 75.87 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.105, allocations: 54.87 MB / 447.7 MB, free: 20.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.787/4.892, allocations: 2.587 GB / 3.024 GB, free: 154.4 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/4.892, allocations: 80.41 kB / 3.024 GB, free: 154.4 MB / 474.7 MB Notification: Performance of FrontEnd: time 0.6823/5.574, allocations: 212 MB / 3.231 GB, free: 83.71 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.528e-05/5.574, allocations: 14.44 kB / 3.231 GB, free: 83.7 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005691/5.58, allocations: 1.167 MB / 3.232 GB, free: 83.09 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/5.58, allocations: 7.375 kB / 3.232 GB, free: 83.09 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001841/5.582, allocations: 239.6 kB / 3.233 GB, free: 83.07 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006257/5.583, allocations: 395.6 kB / 3.233 GB, free: 82.84 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/5.583, allocations: 11.16 kB / 3.233 GB, free: 82.84 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.132e-05/5.583, allocations: 14.97 kB / 3.233 GB, free: 82.84 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004782/5.583, allocations: 301.1 kB / 3.233 GB, free: 82.84 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/5.584, allocations: 378.1 kB / 3.234 GB, free: 82.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/5.584, allocations: 2.531 kB / 3.234 GB, free: 82.7 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.95e-05/5.584, allocations: 3.906 kB / 3.234 GB, free: 82.7 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/5.584, allocations: 11.66 kB / 3.234 GB, free: 82.7 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00606/5.59, allocations: 3.957 MB / 3.238 GB, free: 79.96 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003107/5.59, allocations: 208.5 kB / 3.238 GB, free: 79.94 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/5.59, allocations: 116.4 kB / 3.238 GB, free: 79.93 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1114/5.702, allocations: 50.4 MB / 3.287 GB, free: 52.05 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.328e-05/5.702, allocations: 40.53 kB / 3.287 GB, free: 52.01 MB / 474.7 MB Notification: Performance of pre-optimization done (n=24): time 2.465e-06/5.702, allocations: 0 / 3.287 GB, free: 52.01 MB / 474.7 MB Notification: Performance of matching and sorting (n=24): time 0.001876/5.704, allocations: 495.6 kB / 3.288 GB, free: 51.96 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/5.704, allocations: 106.3 kB / 3.288 GB, free: 51.83 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003019/5.704, allocations: 240.5 kB / 3.288 GB, free: 51.73 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/5.704, allocations: 26.73 kB / 3.288 GB, free: 51.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.435e-05/5.704, allocations: 189.3 kB / 3.288 GB, free: 51.56 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.44e-05/5.704, allocations: 78.47 kB / 3.288 GB, free: 51.51 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.577e-05/5.704, allocations: 4 kB / 3.288 GB, free: 51.51 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.95e-05/5.704, allocations: 343.1 kB / 3.289 GB, free: 51.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/5.705, allocations: 103.3 kB / 3.289 GB, free: 51.19 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/5.705, allocations: 221.5 kB / 3.289 GB, free: 51.04 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000681/5.706, allocations: 200.5 kB / 3.289 GB, free: 51.03 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/5.706, allocations: 1.094 kB / 3.289 GB, free: 51.03 MB / 474.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001576/5.707, allocations: 0.5783 MB / 3.29 GB, free: 50.96 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/5.707, allocations: 3.938 kB / 3.29 GB, free: 50.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/5.707, allocations: 3.656 kB / 3.29 GB, free: 50.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/5.707, allocations: 11.16 kB / 3.29 GB, free: 50.95 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003876/5.708, allocations: 103.9 kB / 3.29 GB, free: 50.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/5.708, allocations: 8.688 kB / 3.29 GB, free: 50.94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003765/5.708, allocations: 62.56 kB / 3.29 GB, free: 50.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/5.708, allocations: 21.44 kB / 3.29 GB, free: 50.92 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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 prepare postOptimizeDAE: time 9.523e-05/5.708, allocations: 111.9 kB / 3.29 GB, free: 50.81 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005464/5.709, allocations: 186.2 kB / 3.29 GB, free: 50.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002194/5.711, allocations: 1.685 MB / 3.292 GB, free: 50.61 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.512e-05/5.711, allocations: 21.58 kB / 3.292 GB, free: 50.61 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/5.711, allocations: 4.938 kB / 3.292 GB, free: 50.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/5.711, allocations: 1.969 kB / 3.292 GB, free: 50.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002405/5.713, allocations: 2.201 MB / 3.294 GB, free: 49.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/5.713, allocations: 0 / 3.294 GB, free: 49.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/5.714, allocations: 79.8 kB / 3.294 GB, free: 49.95 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-06/5.714, allocations: 3.5 kB / 3.294 GB, free: 49.95 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/5.714, allocations: 3.469 kB / 3.294 GB, free: 49.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/5.714, allocations: 0 / 3.294 GB, free: 49.95 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/5.714, allocations: 4.594 kB / 3.294 GB, free: 49.95 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00161/5.715, allocations: 1.385 MB / 3.295 GB, free: 49.33 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/5.715, allocations: 150.9 kB / 3.295 GB, free: 49.19 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.858e-05/5.716, allocations: 3.906 kB / 3.295 GB, free: 49.19 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/5.716, allocations: 43.5 kB / 3.296 GB, free: 49.18 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.109e-05/5.716, allocations: 39.64 kB / 3.296 GB, free: 49.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/5.716, allocations: 11.75 kB / 3.296 GB, free: 49.17 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0001899/5.716, allocations: 226.7 kB / 3.296 GB, free: 49.04 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004746/5.721, allocations: 0.9987 MB / 3.297 GB, free: 48.84 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SinkP1.medium.phase,Opening.y,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.00584/5.727, allocations: 1.498 MB / 3.298 GB, free: 48.46 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00079/5.728, allocations: 0.7089 MB / 3.299 GB, free: 48.16 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/5.728, allocations: 0 / 3.299 GB, free: 48.16 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005015/5.728, allocations: 0.6765 MB / 3.3 GB, free: 47.82 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009248/5.729, allocations: 161.4 kB / 3.3 GB, free: 47.78 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03633/5.765, allocations: 14.4 MB / 3.314 GB, free: 38.47 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000504/5.766, allocations: 0.9645 MB / 3.315 GB, free: 37.57 MB / 474.7 MB Notification: Performance of SimCode: time 1.442e-06/5.766, allocations: 0 / 3.315 GB, free: 37.57 MB / 474.7 MB Notification: Performance of Templates: time 0.03908/5.805, allocations: 31.58 MB / 3.346 GB, free: 9.453 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1)