Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump") [: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.1+maint.om/package.mo): time 0.003621/0.003621, allocations: 175.4 kB / 7.451 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.279/1.279, allocations: 170.6 MB / 178.4 MB, free: 15.73 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001843/0.001843, allocations: 112.7 kB / 217.7 MB, free: 8.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.156/0.156, allocations: 37.97 MB / 294.8 MB, free: 9.66 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.274e-05/1.278e-05, allocations: 1.031 kB / 349.5 MB, free: 37.16 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1281, allocations: 48.7 MB / 398.2 MB, free: 5.68 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.818/5.946, allocations: 2.503 GB / 2.892 GB, free: 6.465 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/5.947, allocations: 86.2 kB / 2.892 GB, free: 6.383 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.209/9.156, allocations: 0.7342 GB / 3.626 GB, free: 35.91 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001979/9.156, allocations: 34.52 kB / 3.626 GB, free: 35.91 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 289 * Number of variables: 289 Notification: Performance of Generate backend data structure: time 0.0134/9.17, allocations: 2.656 MB / 3.628 GB, free: 34.68 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/9.17, allocations: 8.75 kB / 3.628 GB, free: 34.68 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006182/9.176, allocations: 0.6606 MB / 3.629 GB, free: 34.59 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00331/9.179, allocations: 1.01 MB / 3.63 GB, free: 34.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/9.179, allocations: 48.16 kB / 3.63 GB, free: 34.25 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003615/9.18, allocations: 67.62 kB / 3.63 GB, free: 34.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002505/9.182, allocations: 1.08 MB / 3.631 GB, free: 34.25 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003064/9.185, allocations: 1.301 MB / 3.632 GB, free: 33.85 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.826e-05/9.185, allocations: 6.844 kB / 3.632 GB, free: 33.85 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/9.186, allocations: 7.391 kB / 3.633 GB, free: 33.85 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.311e-05/9.186, allocations: 44.64 kB / 3.633 GB, free: 33.85 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1919/9.378, allocations: 73.78 MB / 3.705 GB, free: 10.18 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00187/9.38, allocations: 0.6934 MB / 3.705 GB, free: 10.14 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009262/9.381, allocations: 409 kB / 3.706 GB, free: 10.13 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04591/9.426, allocations: 20.23 MB / 3.725 GB, free: 9.965 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.988e-05/9.427, allocations: 40.28 kB / 3.725 GB, free: 9.918 MB / 490.7 MB Notification: Performance of pre-optimization done (n=86): time 4.699e-06/9.427, allocations: 4.922 kB / 3.725 GB, free: 9.918 MB / 490.7 MB Notification: Performance of matching and sorting (n=120): time 0.03278/9.459, allocations: 5.013 MB / 3.73 GB, free: 6.961 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/9.46, allocations: 167.2 kB / 3.731 GB, free: 6.762 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/9.461, allocations: 0.7142 MB / 3.731 GB, free: 6.277 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002309/9.461, allocations: 25.7 kB / 3.731 GB, free: 6.246 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004493/9.462, allocations: 0.4978 MB / 3.732 GB, free: 5.863 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004585/9.462, allocations: 393.3 kB / 3.732 GB, free: 5.555 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/9.462, allocations: 7.938 kB / 3.732 GB, free: 5.547 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001844/9.463, allocations: 362.5 kB / 3.732 GB, free: 5.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/9.464, allocations: 0.5697 MB / 3.733 GB, free: 4.93 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/9.465, allocations: 0.9742 MB / 3.734 GB, free: 4.109 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003457/9.468, allocations: 0.9218 MB / 3.735 GB, free: 3.652 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-05/9.468, allocations: 8 kB / 3.735 GB, free: 3.645 MB / 490.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.00831/9.477, allocations: 2.744 MB / 3.738 GB, free: 2.105 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2867/9.763, allocations: 4.605 MB / 3.742 GB, free: 93.99 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.473e-05/9.764, allocations: 14.59 kB / 3.742 GB, free: 93.99 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003027/9.767, allocations: 0.8411 MB / 3.743 GB, free: 93.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/9.768, allocations: 382.2 kB / 3.743 GB, free: 93.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006182/9.774, allocations: 3.594 MB / 3.747 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002783/9.777, allocations: 240 kB / 3.747 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000261/9.778, allocations: 90.58 kB / 3.747 GB, free: 91.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/9.778, allocations: 7.25 kB / 3.747 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004052/9.782, allocations: 1.48 MB / 3.749 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.785e-05/9.782, allocations: 10.75 kB / 3.749 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.296e-05/9.782, allocations: 22.56 kB / 3.749 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003233/9.785, allocations: 0.6452 MB / 3.749 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.396e-05/9.785, allocations: 27.2 kB / 3.749 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002017/9.787, allocations: 215.2 kB / 3.749 GB, free: 91.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001391/9.787, allocations: 83.62 kB / 3.749 GB, free: 91.9 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.pump1.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.pump.medium.p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (sink.medium.phase,pump.heatTransfer.states[1].phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase,source.medium.phase,source1.medium.phase,valve1.state_b.phase,valve1.state_a.phase,pump1.monitoring.state_in.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 138 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,3 11,1 7,2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0005292/9.788, allocations: 151 kB / 3.75 GB, free: 91.79 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001678/9.789, allocations: 0.5416 MB / 3.75 GB, free: 91.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008282/9.798, allocations: 5.85 MB / 3.756 GB, free: 91.46 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.833e-05/9.798, allocations: 53.31 kB / 3.756 GB, free: 91.46 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/9.798, allocations: 0 / 3.756 GB, free: 91.46 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/9.798, allocations: 3.656 kB / 3.756 GB, free: 91.46 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0114/9.809, allocations: 7.904 MB / 3.764 GB, free: 90.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.928e-06/9.809, allocations: 9.562 kB / 3.764 GB, free: 90.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009188/9.81, allocations: 244.3 kB / 3.764 GB, free: 90.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00331/9.813, allocations: 1.658 MB / 3.766 GB, free: 90.72 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/9.814, allocations: 31.97 kB / 3.766 GB, free: 90.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00552/9.819, allocations: 4.446 MB / 3.77 GB, free: 88.61 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/9.819, allocations: 1.5 kB / 3.77 GB, free: 88.61 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007277/9.826, allocations: 4.701 MB / 3.774 GB, free: 88.01 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/9.828, allocations: 489 kB / 3.775 GB, free: 87.82 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/9.828, allocations: 5.672 kB / 3.775 GB, free: 87.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/9.829, allocations: 202.3 kB / 3.775 GB, free: 87.81 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002941/9.83, allocations: 131.1 kB / 3.775 GB, free: 87.81 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/9.83, allocations: 60.48 kB / 3.775 GB, free: 87.81 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001088/9.831, allocations: 0.6363 MB / 3.776 GB, free: 87.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01024/9.841, allocations: 1.854 MB / 3.778 GB, free: 87.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 30 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,sink.medium.phase,pump.heatTransfer.states[1].phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 7,3 14,1 7,2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.01402/9.855, allocations: 2.422 MB / 3.78 GB, free: 87.54 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009286/9.865, allocations: 3.543 MB / 3.784 GB, free: 87.49 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.584e-05/9.865, allocations: 0 / 3.784 GB, free: 87.49 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004053/9.869, allocations: 2.382 MB / 3.786 GB, free: 87.46 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003589/9.872, allocations: 485.4 kB / 3.786 GB, free: 87.46 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04536/9.918, allocations: 17.56 MB / 3.804 GB, free: 86.74 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001871/9.92, allocations: 1.612 MB / 3.805 GB, free: 86.01 MB / 490.7 MB Notification: Performance of SimCode: time 1.202e-06/9.92, allocations: 0 / 3.805 GB, free: 86.01 MB / 490.7 MB Notification: Performance of Templates: time 0.1274/10.05, allocations: 73.35 MB / 3.877 GB, free: 81.76 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe 2>&1)