Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|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|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Valve.minLimiter.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|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|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Valve.minLimiter.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault") [: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 trunk/package.mo): time 0.001282/0.001283, allocations: 203.5 kB / 8.539 MB, free: 1.75 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.00105, allocations: 95.44 kB / 286.3 MB, free: 5.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2317/0.2317, allocations: 45.14 MB / 383.3 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.007e-06/9.167e-06, allocations: 4 kB / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1492, allocations: 63.24 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.746/6.896, allocations: 2.787 GB / 3.291 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/6.896, allocations: 88.22 kB / 3.291 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.456/8.352, allocations: 440.2 MB / 3.721 GB, free: 59.15 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.373e-05/8.352, allocations: 14.97 kB / 3.721 GB, free: 59.15 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.00746/8.36, allocations: 1.771 MB / 3.723 GB, free: 58.14 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/8.36, allocations: 7.625 kB / 3.723 GB, free: 58.14 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002995/8.363, allocations: 353 kB / 3.723 GB, free: 58.09 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001541/8.364, allocations: 0.5616 MB / 3.724 GB, free: 57.71 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.744e-05/8.364, allocations: 29.16 kB / 3.724 GB, free: 57.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/8.365, allocations: 29.66 kB / 3.724 GB, free: 57.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001077/8.366, allocations: 0.5471 MB / 3.724 GB, free: 57.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/8.367, allocations: 0.6627 MB / 3.725 GB, free: 57.14 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/8.367, allocations: 0 / 3.725 GB, free: 57.14 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.988e-05/8.367, allocations: 3.812 kB / 3.725 GB, free: 57.14 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-05/8.367, allocations: 20.06 kB / 3.725 GB, free: 57.14 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08707/8.454, allocations: 49.9 MB / 3.774 GB, free: 22.36 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004433/8.454, allocations: 303.4 kB / 3.774 GB, free: 22.22 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002585/8.455, allocations: 195.2 kB / 3.774 GB, free: 22.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05432/8.509, allocations: 27.19 MB / 3.801 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.809e-05/8.509, allocations: 38.89 kB / 3.801 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=39): time 2.985e-06/8.509, allocations: 0 / 3.801 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of matching and sorting (n=39): time 0.002847/8.512, allocations: 0.7966 MB / 3.802 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.502e-05/8.512, allocations: 110.8 kB / 3.802 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005565/8.513, allocations: 412.4 kB / 3.802 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.857e-05/8.513, allocations: 29.7 kB / 3.802 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/8.513, allocations: 295.1 kB / 3.802 GB, free: 14 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/8.513, allocations: 128.9 kB / 3.802 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/8.513, allocations: 0 / 3.802 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001568/8.513, allocations: 365.8 kB / 3.803 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002738/8.513, allocations: 188 kB / 3.803 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000341/8.514, allocations: 365.2 kB / 3.803 GB, free: 12.94 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/8.515, allocations: 324.4 kB / 3.804 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/8.515, allocations: 0 / 3.804 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002754/8.518, allocations: 1.026 MB / 3.805 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001074/8.519, allocations: 2.007 MB / 3.807 GB, free: 9.676 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/8.519, allocations: 7.281 kB / 3.807 GB, free: 9.672 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009058/8.52, allocations: 187.8 kB / 3.807 GB, free: 9.523 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005466/8.52, allocations: 143.9 kB / 3.807 GB, free: 9.406 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001913/8.522, allocations: 0.8849 MB / 3.808 GB, free: 8.562 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009955/8.523, allocations: 131.8 kB / 3.808 GB, free: 8.453 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-05/8.523, allocations: 41.53 kB / 3.808 GB, free: 8.418 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/8.523, allocations: 7.906 kB / 3.808 GB, free: 8.41 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002466/8.526, allocations: 0.7258 MB / 3.809 GB, free: 7.805 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/8.526, allocations: 4 kB / 3.809 GB, free: 7.801 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008448/8.527, allocations: 176.6 kB / 3.809 GB, free: 7.668 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004996/8.527, allocations: 141.2 kB / 3.809 GB, free: 7.551 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/8.528, allocations: 0.8 MB / 3.81 GB, free: 6.773 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008358/8.529, allocations: 99.25 kB / 3.81 GB, free: 6.695 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.826e-05/8.529, allocations: 31.42 kB / 3.81 GB, free: 6.668 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 (Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.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 (55): * Single equations (assignments): 54 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002547/8.53, allocations: 132.4 kB / 3.81 GB, free: 6.535 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007657/8.53, allocations: 259.6 kB / 3.81 GB, free: 6.348 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003109/8.534, allocations: 2.472 MB / 3.813 GB, free: 4.148 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-05/8.534, allocations: 23.34 kB / 3.813 GB, free: 4.137 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/8.534, allocations: 0 / 3.813 GB, free: 4.137 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/8.534, allocations: 7.594 kB / 3.813 GB, free: 4.137 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/8.537, allocations: 3.127 MB / 3.816 GB, free: 1.348 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/8.537, allocations: 4.094 kB / 3.816 GB, free: 1.344 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/8.537, allocations: 74.77 kB / 3.816 GB, free: 1.281 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/8.538, allocations: 0.6892 MB / 3.817 GB, free: 0.6875 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.513e-05/8.538, allocations: 4 kB / 3.817 GB, free: 0.6836 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/8.54, allocations: 1.265 MB / 3.818 GB, free: 15.48 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.671e-05/8.54, allocations: 112 / 3.818 GB, free: 15.48 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00329/8.543, allocations: 1.96 MB / 3.82 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000511/8.544, allocations: 263.8 kB / 3.82 GB, free: 13.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/8.544, allocations: 0.6094 kB / 3.82 GB, free: 13.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005898/8.545, allocations: 67.42 kB / 3.82 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/8.545, allocations: 43.33 kB / 3.82 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.172e-05/8.545, allocations: 20.17 kB / 3.82 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0005353/8.545, allocations: 380 kB / 3.82 GB, free: 13.01 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006505/8.552, allocations: 1.418 MB / 3.822 GB, free: 11.62 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($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,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.009264/8.561, allocations: 1.888 MB / 3.824 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003108/8.564, allocations: 1.334 MB / 3.825 GB, free: 8.836 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/8.564, allocations: 0 / 3.825 GB, free: 8.836 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001088/8.565, allocations: 0.8966 MB / 3.826 GB, free: 8.004 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/8.567, allocations: 261.9 kB / 3.826 GB, free: 7.824 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003144/8.57, allocations: 1.553 MB / 3.828 GB, free: 6.387 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009197/8.571, allocations: 1.12 MB / 3.829 GB, free: 5.379 MB / 0.5573 GB Notification: Performance of SimCode: time 8.22e-07/8.571, allocations: 0 / 3.829 GB, free: 5.379 MB / 0.5573 GB Notification: Performance of Templates: time 0.2712/8.842, allocations: 43.69 MB / 3.871 GB, free: 142.5 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDefault/TestWaterPumpDefault.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches