Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.y|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|valveOpening.y|pressure1.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|pump1.port_b.m_flow|pump1.port_b.p|pump1.port_b.h_outflow|valve1.port_b.m_flow|valve1.port_b.p|valve1.port_b.h_outflow|valve1.minLimiter.y|valveOpening1.y|sinkPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.y|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|valveOpening.y|pressure1.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|pump1.port_b.m_flow|pump1.port_b.p|pump1.port_b.h_outflow|valve1.port_b.m_flow|valve1.port_b.p|valve1.port_b.h_outflow|valve1.minLimiter.y|valveOpening1.y|sinkPressure.y",fileNamePrefix="ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 183 kB / 8.519 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 221.4 MB / 230.3 MB, free: 7.684 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009474/0.0009475, allocations: 90.48 kB / 281.2 MB, free: 5.504 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1876/0.1876, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.494e-06/7.524e-06, allocations: 224 / 444 MB, free: 15.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1191, allocations: 61.9 MB / 0.4941 GB, free: 1.574 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.815/4.934, allocations: 2.788 GB / 3.282 GB, free: 158.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/4.934, allocations: 87.34 kB / 3.282 GB, free: 158.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.419/7.354, allocations: 0.7672 GB / 4.049 GB, free: 6.945 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001773/7.354, allocations: 39.91 kB / 4.049 GB, free: 6.91 MB / 0.5417 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 0.01215/7.366, allocations: 2.748 MB / 4.052 GB, free: 4.121 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/7.366, allocations: 11.97 kB / 4.052 GB, free: 4.109 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006261/7.373, allocations: 0.6888 MB / 4.053 GB, free: 3.418 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003189/7.376, allocations: 0.975 MB / 4.054 GB, free: 2.418 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/7.376, allocations: 56 kB / 4.054 GB, free: 2.363 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004904/7.376, allocations: 64 kB / 4.054 GB, free: 2.301 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002896/7.379, allocations: 1.094 MB / 4.055 GB, free: 1.203 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3116/7.691, allocations: 1.314 MB / 4.056 GB, free: 80.88 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.993e-05/7.691, allocations: 5.906 kB / 4.056 GB, free: 80.88 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000202/7.691, allocations: 11.5 kB / 4.056 GB, free: 80.88 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-05/7.691, allocations: 48.73 kB / 4.056 GB, free: 80.88 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2358/7.927, allocations: 88.72 MB / 4.143 GB, free: 41.55 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/7.929, allocations: 0.7035 MB / 4.143 GB, free: 41.52 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007088/7.93, allocations: 417 kB / 4.144 GB, free: 41.51 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05076/7.98, allocations: 24.26 MB / 4.168 GB, free: 41.69 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.551e-05/7.98, allocations: 42.5 kB / 4.168 GB, free: 41.65 MB / 0.573 GB Notification: Performance of pre-optimization done (n=86): time 2.925e-06/7.98, allocations: 2.844 kB / 4.168 GB, free: 41.65 MB / 0.573 GB Notification: Performance of matching and sorting (n=86): time 0.007192/7.988, allocations: 1.644 MB / 4.169 GB, free: 41.52 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/7.988, allocations: 168.9 kB / 4.169 GB, free: 41.34 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00164/7.989, allocations: 0.7104 MB / 4.17 GB, free: 41.19 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000221/7.99, allocations: 25.7 kB / 4.17 GB, free: 41.16 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004089/7.99, allocations: 490.5 kB / 4.171 GB, free: 40.92 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000402/7.99, allocations: 286.9 kB / 4.171 GB, free: 40.77 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.016e-05/7.991, allocations: 3.969 kB / 4.171 GB, free: 40.77 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001954/7.991, allocations: 342 kB / 4.171 GB, free: 40.47 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000762/7.992, allocations: 396.1 kB / 4.171 GB, free: 40.46 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008935/7.992, allocations: 0.703 MB / 4.172 GB, free: 40.07 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002535/7.995, allocations: 0.6438 MB / 4.173 GB, free: 40.05 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/7.995, allocations: 3.875 kB / 4.173 GB, free: 40.05 MB / 0.573 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.005904/8.001, allocations: 2.021 MB / 4.175 GB, free: 39.93 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001526/8.003, allocations: 3.753 MB / 4.178 GB, free: 36 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.914e-05/8.003, allocations: 9.703 kB / 4.178 GB, free: 36 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001395/8.004, allocations: 343.2 kB / 4.179 GB, free: 35.98 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/8.005, allocations: 299 kB / 4.179 GB, free: 35.97 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003159/8.008, allocations: 1.766 MB / 4.181 GB, free: 34.92 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/8.01, allocations: 257.3 kB / 4.181 GB, free: 34.87 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/8.011, allocations: 68.38 kB / 4.181 GB, free: 34.87 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/8.011, allocations: 2.438 kB / 4.181 GB, free: 34.87 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003194/8.014, allocations: 1.148 MB / 4.182 GB, free: 34.84 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/8.014, allocations: 10.53 kB / 4.182 GB, free: 34.84 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/8.014, allocations: 15.75 kB / 4.182 GB, free: 34.84 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002262/8.016, allocations: 482.8 kB / 4.183 GB, free: 34.83 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.379e-05/8.016, allocations: 19.34 kB / 4.183 GB, free: 34.83 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/8.018, allocations: 221.9 kB / 4.183 GB, free: 34.79 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001609/8.018, allocations: 70.89 kB / 4.183 GB, free: 34.79 MB / 0.573 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.0004047/8.018, allocations: 143.9 kB / 4.183 GB, free: 34.68 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001787/8.02, allocations: 0.5257 MB / 4.184 GB, free: 34.62 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006622/8.027, allocations: 4.848 MB / 4.188 GB, free: 34.23 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.347e-05/8.027, allocations: 54.69 kB / 4.188 GB, free: 34.23 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/8.027, allocations: 0 / 4.188 GB, free: 34.23 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/8.027, allocations: 3.656 kB / 4.188 GB, free: 34.23 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008921/8.036, allocations: 6.482 MB / 4.195 GB, free: 33.59 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/8.036, allocations: 7.75 kB / 4.195 GB, free: 33.59 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006896/8.037, allocations: 178.6 kB / 4.195 GB, free: 33.59 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00211/8.039, allocations: 1.067 MB / 4.196 GB, free: 33.53 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-05/8.039, allocations: 25.08 kB / 4.196 GB, free: 33.53 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003052/8.042, allocations: 2.498 MB / 4.198 GB, free: 32.45 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.928e-06/8.042, allocations: 10.27 kB / 4.198 GB, free: 32.44 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007129/8.049, allocations: 3.923 MB / 4.202 GB, free: 31.89 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/8.05, allocations: 460.1 kB / 4.203 GB, free: 31.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004545/8.051, allocations: 7.781 kB / 4.203 GB, free: 31.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/8.052, allocations: 152.1 kB / 4.203 GB, free: 31.68 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/8.053, allocations: 93.58 kB / 4.203 GB, free: 31.68 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/8.053, allocations: 43.89 kB / 4.203 GB, free: 31.68 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001349/8.054, allocations: 0.6693 MB / 4.204 GB, free: 31.57 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009478/8.064, allocations: 1.837 MB / 4.205 GB, free: 31.5 MB / 0.573 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.01208/8.076, allocations: 2.357 MB / 4.208 GB, free: 31.13 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005109/8.081, allocations: 2.664 MB / 4.21 GB, free: 31.08 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/8.081, allocations: 0 / 4.21 GB, free: 31.08 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002118/8.083, allocations: 1.868 MB / 4.212 GB, free: 31.06 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003138/8.086, allocations: 0.4889 MB / 4.213 GB, free: 31.03 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006283/8.093, allocations: 3.189 MB / 4.216 GB, free: 30.38 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001817/8.094, allocations: 1.582 MB / 4.217 GB, free: 29.62 MB / 0.573 GB Notification: Performance of SimCode: time 1.193e-06/8.095, allocations: 0 / 4.217 GB, free: 29.62 MB / 0.573 GB Notification: Performance of Templates: time 0.09412/8.189, allocations: 62.85 MB / 4.279 GB, free: 16.27 MB / 0.573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestControlledPump/TestControlledPump.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches