Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump",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 3.2.3+maint.om/package.mo): time 0.002344/0.002344, allocations: 187.9 kB / 7.802 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.2 MB / 213.4 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009952/0.0009953, allocations: 88.5 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2733/0.2733, allocations: 43.49 MB / 352.9 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2753/0.5487, allocations: 64.97 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4823/1.031, allocations: 58.85 MB / 476.7 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.085/8.116, allocations: 2.782 GB / 3.248 GB, free: 85.24 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/8.116, allocations: 83.95 kB / 3.248 GB, free: 85.16 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: 289 * Number of variables: 289 Notification: Performance of Generate backend data structure: time 3.057/11.17, allocations: 0.7617 GB / 4.01 GB, free: 37.13 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/11.17, allocations: 11.56 kB / 4.01 GB, free: 37.13 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00597/11.18, allocations: 0.6869 MB / 4.01 GB, free: 37.05 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002824/11.18, allocations: 0.9843 MB / 4.011 GB, free: 36.71 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/11.18, allocations: 47.5 kB / 4.011 GB, free: 36.71 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003569/11.18, allocations: 64.56 kB / 4.011 GB, free: 36.71 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002406/11.18, allocations: 1.096 MB / 4.012 GB, free: 36.71 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002672/11.19, allocations: 1.319 MB / 4.014 GB, free: 36.31 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.919e-05/11.19, allocations: 6.094 kB / 4.014 GB, free: 36.31 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000179/11.19, allocations: 3.25 kB / 4.014 GB, free: 36.31 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.612e-05/11.19, allocations: 48.77 kB / 4.014 GB, free: 36.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1876/11.38, allocations: 88.73 MB / 4.1 GB, free: 24.66 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/11.38, allocations: 0.7121 MB / 4.101 GB, free: 24.24 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007251/11.38, allocations: 419.6 kB / 4.101 GB, free: 24.01 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3932/11.77, allocations: 24.24 MB / 4.125 GB, free: 129 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.238e-05/11.77, allocations: 41.22 kB / 4.125 GB, free: 129 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=86): time 5.22e-06/11.77, allocations: 2.719 kB / 4.125 GB, free: 129 MB / 0.5573 GB Notification: Performance of matching and sorting (n=86): time 0.006268/11.78, allocations: 1.646 MB / 4.127 GB, free: 128.9 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.324e-05/11.78, allocations: 162.8 kB / 4.127 GB, free: 128.7 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001286/11.78, allocations: 0.7114 MB / 4.128 GB, free: 128.6 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001206/11.78, allocations: 25.7 kB / 4.128 GB, free: 128.5 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003326/11.78, allocations: 494.5 kB / 4.128 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003284/11.78, allocations: 281 kB / 4.128 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.8e-05/11.78, allocations: 0 / 4.128 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001274/11.78, allocations: 355.8 kB / 4.129 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006134/11.78, allocations: 383.1 kB / 4.129 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007798/11.78, allocations: 0.7121 MB / 4.13 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002374/11.78, allocations: 0.6388 MB / 4.13 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/11.78, allocations: 6.906 kB / 4.13 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.005841/11.79, allocations: 2.024 MB / 4.132 GB, free: 127.4 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009646/11.79, allocations: 3.747 MB / 4.136 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.387e-05/11.79, allocations: 12.06 kB / 4.136 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/11.79, allocations: 342.8 kB / 4.136 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/11.79, allocations: 300.9 kB / 4.137 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003028/11.8, allocations: 1.765 MB / 4.138 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00211/11.8, allocations: 256.2 kB / 4.139 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000151/11.8, allocations: 70.11 kB / 4.139 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/11.8, allocations: 3.719 kB / 4.139 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003123/11.8, allocations: 1.145 MB / 4.14 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/11.8, allocations: 11.06 kB / 4.14 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/11.8, allocations: 18.48 kB / 4.14 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002461/11.8, allocations: 476.7 kB / 4.14 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.73e-05/11.8, allocations: 21.97 kB / 4.14 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001964/11.81, allocations: 223.1 kB / 4.141 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/11.81, allocations: 67.48 kB / 4.141 GB, free: 122.4 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (114): * Single equations (assignments): 112 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 11,2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004492/11.81, allocations: 142.4 kB / 4.141 GB, free: 122.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001735/11.81, allocations: 0.5242 MB / 4.141 GB, free: 122.2 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007362/11.82, allocations: 4.844 MB / 4.146 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-05/11.82, allocations: 50.12 kB / 4.146 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.614e-05/11.82, allocations: 3.656 kB / 4.146 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.186e-05/11.82, allocations: 3.797 kB / 4.146 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/11.83, allocations: 6.488 MB / 4.152 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/11.83, allocations: 4.688 kB / 4.152 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007402/11.83, allocations: 176.8 kB / 4.153 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002211/11.83, allocations: 1.068 MB / 4.154 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000119/11.83, allocations: 24.16 kB / 4.154 GB, free: 121.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00302/11.83, allocations: 2.509 MB / 4.156 GB, free: 120.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/11.83, allocations: 0 / 4.156 GB, free: 120.1 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006268/11.84, allocations: 3.932 MB / 4.16 GB, free: 119.5 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006823/11.85, allocations: 4.447 MB / 4.164 GB, free: 118.6 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/11.85, allocations: 467.4 kB / 4.165 GB, free: 118.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002261/11.85, allocations: 3.062 kB / 4.165 GB, free: 118.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/11.85, allocations: 151.7 kB / 4.165 GB, free: 118.4 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/11.85, allocations: 97.08 kB / 4.165 GB, free: 118.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.093e-05/11.85, allocations: 44.34 kB / 4.165 GB, free: 118.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0008939/11.85, allocations: 0.6623 MB / 4.166 GB, free: 118.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01055/11.86, allocations: 2.244 MB / 4.168 GB, free: 118.2 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 32 ($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,$cse17.phase,$cse17.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.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 (77): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 {3 14,2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.01311/11.87, allocations: 2.346 MB / 4.17 GB, free: 118 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006479/11.88, allocations: 2.674 MB / 4.173 GB, free: 117.9 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.569e-05/11.88, allocations: 0 / 4.173 GB, free: 117.9 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002641/11.88, allocations: 1.871 MB / 4.175 GB, free: 117.9 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0038/11.89, allocations: 487.7 kB / 4.175 GB, free: 117.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006078/11.89, allocations: 3.203 MB / 4.178 GB, free: 117.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001221/11.89, allocations: 1.574 MB / 4.18 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of SimCode: time 9.42e-07/11.89, allocations: 0 / 4.18 GB, free: 116.5 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe 2>&1)