Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.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: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV") [: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.0009674/0.0009672, allocations: 190.2 kB / 7.805 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.027/1.027, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0008702/0.0008699, allocations: 98.55 kB / 261.4 MB, free: 13.54 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.1474/0.1474, allocations: 43.49 MB / 352.8 MB, free: 1.969 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.949e-06/4.959e-06, allocations: 0 / 417.7 MB, free: 40.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2182, allocations: 58.83 MB / 476.6 MB, free: 5.227 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.736/3.954, allocations: 2.764 GB / 3.229 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/3.954, allocations: 83.95 kB / 3.229 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.069/5.024, allocations: 416.9 MB / 3.637 GB, free: 68.18 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.615e-05/5.024, allocations: 15.66 kB / 3.637 GB, free: 68.18 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.005185/5.029, allocations: 1.664 MB / 3.638 GB, free: 67.25 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/5.029, allocations: 15.48 kB / 3.638 GB, free: 67.25 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002098/5.031, allocations: 311.3 kB / 3.639 GB, free: 67.2 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007816/5.032, allocations: 0.5361 MB / 3.639 GB, free: 66.84 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.661e-05/5.032, allocations: 27.34 kB / 3.639 GB, free: 66.83 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.235e-05/5.032, allocations: 30.28 kB / 3.639 GB, free: 66.83 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000775/5.033, allocations: 0.5133 MB / 3.64 GB, free: 66.65 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008232/5.034, allocations: 0.6469 MB / 3.64 GB, free: 66.29 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/5.034, allocations: 3.938 kB / 3.64 GB, free: 66.28 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.369e-05/5.034, allocations: 3.562 kB / 3.64 GB, free: 66.28 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.873e-05/5.034, allocations: 20.19 kB / 3.64 GB, free: 66.28 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07244/5.106, allocations: 44.25 MB / 3.683 GB, free: 36.63 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005673/5.107, allocations: 347.9 kB / 3.684 GB, free: 36.48 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003084/5.107, allocations: 195 kB / 3.684 GB, free: 36.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04158/5.149, allocations: 24.08 MB / 3.707 GB, free: 17.78 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.608e-05/5.149, allocations: 38.89 kB / 3.708 GB, free: 17.73 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=39): time 3.356e-06/5.149, allocations: 0 / 3.708 GB, free: 17.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=39): time 0.002896/5.152, allocations: 0.8081 MB / 3.708 GB, free: 17.07 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/5.152, allocations: 106.8 kB / 3.708 GB, free: 16.95 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004878/5.152, allocations: 375.4 kB / 3.709 GB, free: 16.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.056e-05/5.152, allocations: 25.7 kB / 3.709 GB, free: 16.57 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/5.152, allocations: 278.4 kB / 3.709 GB, free: 16.32 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.531e-05/5.153, allocations: 125.3 kB / 3.709 GB, free: 16.21 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/5.153, allocations: 4 kB / 3.709 GB, free: 16.21 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.721e-05/5.153, allocations: 356.1 kB / 3.71 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002454/5.153, allocations: 180.7 kB / 3.71 GB, free: 15.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/5.153, allocations: 348.8 kB / 3.71 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008835/5.154, allocations: 273.4 kB / 3.71 GB, free: 15.08 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/5.154, allocations: 4 kB / 3.71 GB, free: 15.08 MB / 0.5105 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00272/5.157, allocations: 1.029 MB / 3.711 GB, free: 14.22 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003018/5.157, allocations: 1.914 MB / 3.713 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/5.157, allocations: 10.5 kB / 3.713 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000699/5.158, allocations: 178.5 kB / 3.713 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000406/5.158, allocations: 128.3 kB / 3.713 GB, free: 11.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009008/5.159, allocations: 0.8185 MB / 3.714 GB, free: 11.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007246/5.16, allocations: 113.8 kB / 3.714 GB, free: 11.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/5.16, allocations: 39.78 kB / 3.714 GB, free: 10.99 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.781e-06/5.16, allocations: 4 kB / 3.714 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002161/5.162, allocations: 0.7063 MB / 3.715 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/5.162, allocations: 4 kB / 3.715 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000748/5.163, allocations: 167.3 kB / 3.715 GB, free: 10.26 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003913/5.163, allocations: 132.2 kB / 3.715 GB, free: 10.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000633/5.164, allocations: 0.7682 MB / 3.716 GB, free: 9.398 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005214/5.165, allocations: 94.55 kB / 3.716 GB, free: 9.324 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.46e-05/5.165, allocations: 31.89 kB / 3.716 GB, free: 9.297 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (53): * Single equations (assignments): 52 * 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 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001283/5.165, allocations: 138.1 kB / 3.716 GB, free: 9.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006681/5.165, allocations: 261.5 kB / 3.717 GB, free: 8.973 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002417/5.168, allocations: 2.337 MB / 3.719 GB, free: 6.879 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-05/5.168, allocations: 21.89 kB / 3.719 GB, free: 6.867 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/5.168, allocations: 0 / 3.719 GB, free: 6.867 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/5.168, allocations: 3.75 kB / 3.719 GB, free: 6.867 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002689/5.171, allocations: 3.013 MB / 3.722 GB, free: 4.172 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/5.171, allocations: 4 kB / 3.722 GB, free: 4.168 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002409/5.171, allocations: 71.38 kB / 3.722 GB, free: 4.109 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006879/5.172, allocations: 364.9 kB / 3.722 GB, free: 3.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.022e-05/5.172, allocations: 15.66 kB / 3.722 GB, free: 3.809 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008058/5.172, allocations: 0.9773 MB / 3.723 GB, free: 2.859 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/5.172, allocations: 7.938 kB / 3.723 GB, free: 2.852 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002216/5.175, allocations: 1.881 MB / 3.725 GB, free: 1.125 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/5.175, allocations: 263.2 kB / 3.725 GB, free: 0.8828 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.588e-05/5.175, allocations: 3.609 kB / 3.725 GB, free: 0.8828 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004668/5.175, allocations: 66.2 kB / 3.725 GB, free: 0.832 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.784e-05/5.176, allocations: 39.36 kB / 3.726 GB, free: 0.8125 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.942e-05/5.176, allocations: 23.05 kB / 3.726 GB, free: 0.793 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002938/5.176, allocations: 348.5 kB / 3.726 GB, free: 488 kB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004859/5.181, allocations: 1.329 MB / 3.727 GB, free: 15.18 MB / 0.5261 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,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.00548/5.186, allocations: 1.813 MB / 3.729 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001978/5.188, allocations: 1.297 MB / 3.73 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/5.188, allocations: 0 / 3.73 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009044/5.189, allocations: 0.9007 MB / 3.731 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/5.19, allocations: 238 kB / 3.731 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/5.193, allocations: 1.509 MB / 3.733 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006883/5.193, allocations: 1.098 MB / 3.734 GB, free: 9.094 MB / 0.5261 GB Notification: Performance of SimCode: time 3.01e-07/5.193, allocations: 0 / 3.734 GB, free: 9.094 MB / 0.5261 GB Notification: Performance of Templates: time 0.2104/5.404, allocations: 42.17 MB / 3.775 GB, free: 130.9 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpDefaultLV/TestWaterPumpDefaultLV.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches