Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.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.TestWaterPumpCheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve") [: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.00129/0.00129, allocations: 178.6 kB / 8.521 MB, free: 1.824 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.404/1.404, allocations: 221.4 MB / 230.3 MB, free: 7.676 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.0009897/0.0009896, allocations: 101.9 kB / 281.2 MB, free: 5.473 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.1877/0.1877, allocations: 44.15 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.206e-05/1.208e-05, allocations: 4.219 kB / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1489, allocations: 61.91 MB / 0.4941 GB, free: 1.602 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.456/4.605, allocations: 2.786 GB / 3.28 GB, free: 4.48 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/4.606, allocations: 83.23 kB / 3.281 GB, free: 4.402 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.651/6.257, allocations: 440.4 MB / 3.711 GB, free: 69.66 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.808e-05/6.257, allocations: 18.05 kB / 3.711 GB, free: 69.66 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.007389/6.265, allocations: 1.761 MB / 3.712 GB, free: 68.99 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/6.265, allocations: 14.84 kB / 3.712 GB, free: 68.98 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003098/6.268, allocations: 357.6 kB / 3.713 GB, free: 68.94 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002084/6.27, allocations: 0.5629 MB / 3.713 GB, free: 68.71 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.17e-05/6.27, allocations: 26.28 kB / 3.713 GB, free: 68.71 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002173/6.27, allocations: 32.81 kB / 3.713 GB, free: 68.71 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001465/6.272, allocations: 0.5407 MB / 3.714 GB, free: 68.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/6.273, allocations: 0.6565 MB / 3.715 GB, free: 68.52 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.584e-05/6.273, allocations: 0 / 3.715 GB, free: 68.52 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.235e-05/6.273, allocations: 3.062 kB / 3.715 GB, free: 68.52 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-05/6.273, allocations: 20.38 kB / 3.715 GB, free: 68.52 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03713/6.31, allocations: 19.53 MB / 3.734 GB, free: 56.34 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006867/6.311, allocations: 323.2 kB / 3.734 GB, free: 56.32 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000386/6.311, allocations: 209.4 kB / 3.734 GB, free: 56.31 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09539/6.407, allocations: 48.2 MB / 3.781 GB, free: 26.24 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/6.407, allocations: 37.03 kB / 3.781 GB, free: 26.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 3.135e-06/6.407, allocations: 0 / 3.781 GB, free: 26.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=50): time 0.006891/6.414, allocations: 1.832 MB / 3.783 GB, free: 25.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/6.414, allocations: 111.2 kB / 3.783 GB, free: 25.68 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007737/6.415, allocations: 385.6 kB / 3.784 GB, free: 25.57 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.784e-05/6.415, allocations: 31.67 kB / 3.784 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002084/6.415, allocations: 272.5 kB / 3.784 GB, free: 25.36 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/6.415, allocations: 169.1 kB / 3.784 GB, free: 25.25 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.804e-05/6.415, allocations: 0 / 3.784 GB, free: 25.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001139/6.415, allocations: 363.5 kB / 3.784 GB, free: 24.93 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003512/6.416, allocations: 206.3 kB / 3.785 GB, free: 24.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004405/6.416, allocations: 371 kB / 3.785 GB, free: 24.75 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/6.417, allocations: 346 kB / 3.785 GB, free: 24.73 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/6.417, allocations: 3.938 kB / 3.785 GB, free: 24.73 MB / 0.5261 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003429/6.421, allocations: 1.138 MB / 3.786 GB, free: 24.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004494/6.421, allocations: 1.839 MB / 3.788 GB, free: 22.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/6.421, allocations: 3.656 kB / 3.788 GB, free: 22.72 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/6.423, allocations: 304.4 kB / 3.788 GB, free: 22.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005351/6.423, allocations: 143.6 kB / 3.789 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/6.425, allocations: 1.021 MB / 3.79 GB, free: 22.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009033/6.426, allocations: 86.16 kB / 3.79 GB, free: 22.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.418e-05/6.426, allocations: 42.06 kB / 3.79 GB, free: 22.15 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/6.426, allocations: 3.75 kB / 3.79 GB, free: 22.15 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002167/6.428, allocations: 0.7499 MB / 3.79 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/6.428, allocations: 10.2 kB / 3.79 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009488/6.429, allocations: 268.5 kB / 3.791 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005053/6.429, allocations: 142.6 kB / 3.791 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009978/6.43, allocations: 0.9171 MB / 3.792 GB, free: 21.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008008/6.431, allocations: 81.14 kB / 3.792 GB, free: 21.56 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.346e-05/6.431, allocations: 33.27 kB / 3.792 GB, free: 21.56 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].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 (54): * Single equations (assignments): 53 * 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 {4 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002236/6.432, allocations: 125.5 kB / 3.792 GB, free: 21.45 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008289/6.432, allocations: 272.2 kB / 3.792 GB, free: 21.42 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003044/6.435, allocations: 2.252 MB / 3.794 GB, free: 21.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/6.436, allocations: 26.89 kB / 3.794 GB, free: 21.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/6.436, allocations: 0 / 3.794 GB, free: 21.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/6.436, allocations: 7.641 kB / 3.794 GB, free: 21.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004349/6.44, allocations: 3.084 MB / 3.797 GB, free: 20.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/6.44, allocations: 3.969 kB / 3.797 GB, free: 20.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005785/6.441, allocations: 135.6 kB / 3.798 GB, free: 20.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000303/6.441, allocations: 92.91 kB / 3.798 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.284e-05/6.441, allocations: 14.97 kB / 3.798 GB, free: 20.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00073/6.442, allocations: 1.172 MB / 3.799 GB, free: 19.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/6.442, allocations: 0 / 3.799 GB, free: 19.74 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003393/6.445, allocations: 2.342 MB / 3.801 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005738/6.446, allocations: 275.7 kB / 3.801 GB, free: 19.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/6.446, allocations: 11.5 kB / 3.801 GB, free: 19.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007411/6.447, allocations: 64.44 kB / 3.801 GB, free: 19.24 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/6.447, allocations: 70.03 kB / 3.801 GB, free: 19.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-05/6.447, allocations: 27.66 kB / 3.802 GB, free: 19.23 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005427/6.447, allocations: 411.1 kB / 3.802 GB, free: 19.13 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00725/6.455, allocations: 1.366 MB / 3.803 GB, free: 18.94 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 15 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,pump.heatTransfer.states[1].phase,Sink.medium.phase,Source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0101/6.465, allocations: 1.888 MB / 3.805 GB, free: 18.54 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002799/6.468, allocations: 1.427 MB / 3.806 GB, free: 18.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/6.468, allocations: 2.906 kB / 3.806 GB, free: 18.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001251/6.469, allocations: 0.9005 MB / 3.807 GB, free: 18.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/6.471, allocations: 253.7 kB / 3.808 GB, free: 18.49 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/6.474, allocations: 1.711 MB / 3.809 GB, free: 18.06 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007278/6.475, allocations: 1.133 MB / 3.81 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of SimCode: time 7.51e-07/6.475, allocations: 0 / 3.81 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of Templates: time 0.06607/6.541, allocations: 44.55 MB / 3.854 GB, free: 9.762 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpCheckValve/TestWaterPumpCheckValve.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches