Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.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.Pipes.StaticPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") translateModel(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") [: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.00408/0.00408, allocations: 182.3 kB / 7.458 MB, free: 2.504 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.39/1.39, allocations: 194.2 MB / 202.1 MB, free: 8.672 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.001826/0.001826, allocations: 115.9 kB / 247.1 MB, free: 6.402 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.1961/0.1961, allocations: 39.93 MB / 331.9 MB, free: 4.957 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.292e-06/6.332e-06, allocations: 0 / 392.8 MB, free: 75.89 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09614/0.09616, allocations: 54.87 MB / 447.6 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6732/0.7694, allocations: 310.5 MB / 0.7404 GB, free: 118.1 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002207/0.7697, allocations: 79.95 kB / 0.7405 GB, free: 118 MB / 474.7 MB Notification: Performance of FrontEnd: time 0.2062/0.9758, allocations: 95.88 MB / 0.8341 GB, free: 21.18 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.875e-05/0.9759, allocations: 15.94 kB / 0.8341 GB, free: 21.16 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002057/0.978, allocations: 0.8197 MB / 0.8349 GB, free: 20.29 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.9781, allocations: 12.03 kB / 0.8349 GB, free: 20.28 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000458/0.9785, allocations: 55.42 kB / 0.835 GB, free: 20.22 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.9796, allocations: 483.8 kB / 0.8354 GB, free: 19.71 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.9797, allocations: 19.98 kB / 0.8354 GB, free: 19.69 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.719e-05/0.9798, allocations: 19.94 kB / 0.8355 GB, free: 19.67 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006585/0.9804, allocations: 393.2 kB / 0.8358 GB, free: 19.29 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006654/0.9811, allocations: 479 kB / 0.8363 GB, free: 18.78 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.9811, allocations: 3.984 kB / 0.8363 GB, free: 18.77 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.636e-05/0.9812, allocations: 7.906 kB / 0.8363 GB, free: 18.77 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.14e-05/0.9812, allocations: 28.64 kB / 0.8363 GB, free: 18.74 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003035/0.9843, allocations: 2.198 MB / 0.8385 GB, free: 16.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002826/0.9846, allocations: 196.2 kB / 0.8387 GB, free: 16.21 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.9847, allocations: 112.8 kB / 0.8388 GB, free: 16.09 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00112/0.9859, allocations: 1.049 MB / 0.8398 GB, free: 14.92 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001573/0.986, allocations: 137.1 kB / 0.8399 GB, free: 14.77 MB / 474.7 MB Notification: Performance of pre-optimization done (n=15): time 2.334e-06/0.9861, allocations: 0 / 0.8399 GB, free: 14.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=15): time 0.000657/0.9867, allocations: 213.1 kB / 0.8401 GB, free: 14.55 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.9868, allocations: 158.2 kB / 0.8403 GB, free: 14.36 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003996/0.9872, allocations: 388.9 kB / 0.8407 GB, free: 13.98 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.9872, allocations: 25.7 kB / 0.8407 GB, free: 13.95 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.9874, allocations: 262.8 kB / 0.8409 GB, free: 13.69 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.432e-05/0.9874, allocations: 55.34 kB / 0.841 GB, free: 13.63 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.6e-05/0.9874, allocations: 0 / 0.841 GB, free: 13.63 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.322e-05/0.9875, allocations: 346.8 kB / 0.8413 GB, free: 13.29 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.9877, allocations: 100.8 kB / 0.8414 GB, free: 13.19 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.9879, allocations: 325.4 kB / 0.8417 GB, free: 12.76 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002964/0.9909, allocations: 0.6601 MB / 0.8424 GB, free: 12.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.9909, allocations: 0 / 0.8424 GB, free: 12.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.003361/0.9942, allocations: 0.905 MB / 0.8432 GB, free: 11.19 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005404/0.9948, allocations: 2.785 MB / 0.846 GB, free: 8.188 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/0.9948, allocations: 8 kB / 0.846 GB, free: 8.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.762e-05/0.9949, allocations: 8 kB / 0.846 GB, free: 8.172 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.9952, allocations: 91.83 kB / 0.8461 GB, free: 8.082 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.9952, allocations: 12.03 kB / 0.8461 GB, free: 8.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/0.9957, allocations: 59.36 kB / 0.8461 GB, free: 8.012 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.9958, allocations: 20 kB / 0.8462 GB, free: 7.992 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.685e-06/0.9958, allocations: 4 kB / 0.8462 GB, free: 7.988 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003052/0.9989, allocations: 0.8156 MB / 0.847 GB, free: 7.172 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.9989, allocations: 4 kB / 0.847 GB, free: 7.168 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.908e-06/0.9989, allocations: 12 kB / 0.847 GB, free: 7.156 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.9992, allocations: 87.83 kB / 0.8471 GB, free: 7.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.9992, allocations: 15.94 kB / 0.8471 GB, free: 7.055 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004116/0.9996, allocations: 36.02 kB / 0.8471 GB, free: 7.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.863e-05/0.9997, allocations: 24 kB / 0.8471 GB, free: 6.996 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001698/0.9998, allocations: 162.4 kB / 0.8473 GB, free: 6.824 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/1, allocations: 39.53 kB / 0.8473 GB, free: 6.785 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006672/1.001, allocations: 258.4 kB / 0.8476 GB, free: 6.531 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.738e-06/1.001, allocations: 48 / 0.8476 GB, free: 6.531 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/1.001, allocations: 3.984 kB / 0.8476 GB, free: 6.527 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/1.001, allocations: 7.922 kB / 0.8476 GB, free: 6.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004389/1.001, allocations: 337.9 kB / 0.8479 GB, free: 6.152 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/1.001, allocations: 0 / 0.8479 GB, free: 6.152 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.484e-05/1.001, allocations: 23.94 kB / 0.8479 GB, free: 6.129 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/1.001, allocations: 7.891 kB / 0.8479 GB, free: 6.121 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/1.001, allocations: 4 kB / 0.8479 GB, free: 6.117 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/1.001, allocations: 3.938 kB / 0.8479 GB, free: 6.113 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.001, allocations: 0 / 0.8479 GB, free: 6.113 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004832/1.002, allocations: 263.9 kB / 0.8482 GB, free: 5.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/1.002, allocations: 124.5 kB / 0.8483 GB, free: 5.699 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.471e-05/1.002, allocations: 4 kB / 0.8483 GB, free: 5.695 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/1.002, allocations: 11.98 kB / 0.8483 GB, free: 5.684 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.374e-05/1.002, allocations: 19.88 kB / 0.8483 GB, free: 5.664 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/1.002, allocations: 8 kB / 0.8484 GB, free: 5.656 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0003184/1.003, allocations: 283.2 kB / 0.8486 GB, free: 5.379 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00156/1.004, allocations: 439.3 kB / 0.849 GB, free: 4.949 MB / 474.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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001645/1.006, allocations: 0.4962 MB / 0.8495 GB, free: 4.449 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0007384/1.007, allocations: 0.4917 MB / 0.85 GB, free: 3.945 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/1.007, allocations: 0 / 0.85 GB, free: 3.945 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001163/1.007, allocations: 133.6 kB / 0.8501 GB, free: 3.809 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006619/1.007, allocations: 130.2 kB / 0.8503 GB, free: 3.688 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/1.009, allocations: 0.566 MB / 0.8508 GB, free: 3.098 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003682/1.009, allocations: 0.8895 MB / 0.8517 GB, free: 2.18 MB / 474.7 MB Notification: Performance of SimCode: time 2.71e-07/1.009, allocations: 4 kB / 0.8517 GB, free: 2.176 MB / 474.7 MB Notification: Performance of Templates: time 0.1772/1.186, allocations: 10.53 MB / 0.862 GB, free: 176.9 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1)