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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001188, allocations: 175.7 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 223.2 MB / 241 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 105 kB / 292.2 MB, free: 10.89 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.4326/0.4326, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003094/0.0003095, allocations: 8 kB / 459.9 MB, free: 1.504 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4326/0.4329, allocations: 61.89 MB / 0.5096 GB, free: 38.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.323/7.755, allocations: 2.789 GB / 3.298 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003222/7.756, allocations: 91.61 kB / 3.298 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.064/10.82, allocations: 0.773 GB / 4.071 GB, free: 29.52 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.743e-06/10.82, allocations: 0 / 4.071 GB, free: 29.52 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001855/10.82, allocations: 45.62 kB / 4.071 GB, free: 29.48 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.01307/10.83, allocations: 2.887 MB / 4.074 GB, free: 26.55 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/10.83, allocations: 11.97 kB / 4.074 GB, free: 26.54 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005726/10.84, allocations: 0.6411 MB / 4.075 GB, free: 25.9 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003255/10.84, allocations: 0.9846 MB / 4.076 GB, free: 24.9 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/10.84, allocations: 98.28 kB / 4.076 GB, free: 24.8 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004531/10.84, allocations: 108 kB / 4.076 GB, free: 24.7 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005661/10.85, allocations: 2.017 MB / 4.078 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.247e-05/10.85, allocations: 7.938 kB / 4.078 GB, free: 22.52 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002428/10.85, allocations: 58.73 kB / 4.078 GB, free: 22.46 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.589e-05/10.85, allocations: 49.95 kB / 4.078 GB, free: 22.41 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004909/10.85, allocations: 1.877 MB / 4.08 GB, free: 20.52 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01149/10.87, allocations: 9.486 MB / 4.089 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004528/10.87, allocations: 1.645 MB / 4.091 GB, free: 8.672 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5073/11.38, allocations: 24.25 MB / 4.114 GB, free: 55.41 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.426e-05/11.38, allocations: 45.09 kB / 4.114 GB, free: 55.37 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=94): time 6.993e-06/11.38, allocations: 4.266 kB / 4.114 GB, free: 55.37 MB / 0.5573 GB Notification: Performance of matching and sorting (n=94): time 0.01218/11.39, allocations: 3.335 MB / 4.118 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.738e-05/11.39, allocations: 166.4 kB / 4.118 GB, free: 54.92 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/11.39, allocations: 0.782 MB / 4.119 GB, free: 54.78 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001083/11.39, allocations: 42.17 kB / 4.119 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004221/11.39, allocations: 0.5846 MB / 4.119 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003065/11.39, allocations: 323.5 kB / 4.119 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.377e-05/11.39, allocations: 26.94 kB / 4.12 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001085/11.39, allocations: 345.1 kB / 4.12 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/11.39, allocations: 0.5017 MB / 4.12 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/11.39, allocations: 0.8407 MB / 4.121 GB, free: 53.73 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001262/11.4, allocations: 0.5759 MB / 4.122 GB, free: 53.72 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/11.4, allocations: 2.75 kB / 4.122 GB, free: 53.72 MB / 0.5573 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003949/11.4, allocations: 1.658 MB / 4.123 GB, free: 53.59 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001082/11.4, allocations: 3.751 MB / 4.127 GB, free: 49.69 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/11.4, allocations: 8.656 kB / 4.127 GB, free: 49.69 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00269/11.4, allocations: 0.5046 MB / 4.127 GB, free: 49.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/11.4, allocations: 295.1 kB / 4.128 GB, free: 49.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00219/11.41, allocations: 1.57 MB / 4.129 GB, free: 48.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/11.41, allocations: 241.8 kB / 4.13 GB, free: 48.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/11.41, allocations: 66.2 kB / 4.13 GB, free: 48.6 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/11.41, allocations: 2.969 kB / 4.13 GB, free: 48.6 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00292/11.41, allocations: 1.358 MB / 4.131 GB, free: 48.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/11.41, allocations: 9.406 kB / 4.131 GB, free: 48.57 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/11.41, allocations: 19.25 kB / 4.131 GB, free: 48.57 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002085/11.41, allocations: 456.3 kB / 4.131 GB, free: 48.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.291e-05/11.41, allocations: 18.31 kB / 4.131 GB, free: 48.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/11.42, allocations: 225.1 kB / 4.132 GB, free: 48.55 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/11.42, allocations: 72.81 kB / 4.132 GB, free: 48.55 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 (source.medium.phase,sink.medium.phase,pump.heatTransfer.states[1].phase,source1.medium.phase,sink1.medium.phase,pump1.heatTransfer.states[1].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 () * Number of clocked 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.0009298/11.42, allocations: 381 kB / 4.132 GB, free: 48.36 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002978/11.42, allocations: 123.3 kB / 4.132 GB, free: 48.3 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007559/11.42, allocations: 5.906 MB / 4.138 GB, free: 47.81 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.8e-05/11.42, allocations: 85.91 kB / 4.138 GB, free: 47.8 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/11.42, allocations: 0 / 4.138 GB, free: 47.8 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.634e-05/11.42, allocations: 8.016 kB / 4.138 GB, free: 47.8 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/11.44, allocations: 8.036 MB / 4.146 GB, free: 47.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/11.44, allocations: 3.438 kB / 4.146 GB, free: 47.14 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000824/11.44, allocations: 226.6 kB / 4.146 GB, free: 47.14 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004137/11.44, allocations: 1.634 MB / 4.148 GB, free: 47.05 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/11.44, allocations: 30.17 kB / 4.148 GB, free: 47.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003307/11.44, allocations: 2.644 MB / 4.15 GB, free: 45.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/11.44, allocations: 2.188 kB / 4.15 GB, free: 45.96 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005734/11.45, allocations: 3.794 MB / 4.154 GB, free: 45.52 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/11.45, allocations: 0.5565 MB / 4.155 GB, free: 45.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002239/11.45, allocations: 20.94 kB / 4.155 GB, free: 45.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/11.45, allocations: 180.3 kB / 4.155 GB, free: 45.21 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/11.45, allocations: 105.7 kB / 4.155 GB, free: 45.21 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.574e-05/11.45, allocations: 45 kB / 4.155 GB, free: 45.21 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001328/11.45, allocations: 0.801 MB / 4.156 GB, free: 45.11 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.7e-07/11.45, allocations: 0 / 4.156 GB, free: 45.11 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01134/11.47, allocations: 1.881 MB / 4.158 GB, free: 44.98 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 48 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,source.medium.phase,sink.medium.phase,pump.heatTransfer.states[1].phase,source1.medium.phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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 16,2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0117/11.48, allocations: 2.135 MB / 4.16 GB, free: 44.75 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006855/11.48, allocations: 2.719 MB / 4.162 GB, free: 44.71 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/11.48, allocations: 0 / 4.162 GB, free: 44.71 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002656/11.49, allocations: 1.593 MB / 4.164 GB, free: 44.68 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003355/11.49, allocations: 0.6035 MB / 4.164 GB, free: 44.66 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007488/11.5, allocations: 5.516 MB / 4.17 GB, free: 42.29 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001227/11.5, allocations: 1.632 MB / 4.171 GB, free: 41.55 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002477/11.5, allocations: 1.373 MB / 4.173 GB, free: 41.54 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/11.5, allocations: 108.7 kB / 4.173 GB, free: 41.53 MB / 0.5573 GB Notification: Performance of SimCode: time 6.71e-07/11.5, allocations: 5.219 kB / 4.173 GB, free: 41.53 MB / 0.5573 GB Notification: Performance of Templates: time 0.08433/11.59, allocations: 62.16 MB / 4.234 GB, free: 38.52 MB / 0.5573 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