Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.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.TestWaterPumpStorage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage") translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage") [: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.001472/0.001472, allocations: 179.9 kB / 8.519 MB, free: 1.84 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.215/1.215, allocations: 221.4 MB / 230.3 MB, free: 2.988 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.0008621/0.0008619, allocations: 102 kB / 281.2 MB, free: 1.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3134/0.3134, allocations: 44.14 MB / 376.1 MB, free: 43.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.013e-05/1.015e-05, allocations: 3.938 kB / 444 MB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3357, allocations: 61.9 MB / 0.4941 GB, free: 42.38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.723/6.059, allocations: 2.786 GB / 3.281 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/6.059, allocations: 79.44 kB / 3.281 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.64/7.699, allocations: 440.5 MB / 3.711 GB, free: 56.84 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.86e-05/7.699, allocations: 19.53 kB / 3.711 GB, free: 56.83 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.008444/7.708, allocations: 1.759 MB / 3.712 GB, free: 55.86 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/7.708, allocations: 10.97 kB / 3.712 GB, free: 55.86 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003268/7.711, allocations: 348.3 kB / 3.713 GB, free: 55.8 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001778/7.713, allocations: 0.575 MB / 3.713 GB, free: 55.42 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.531e-05/7.713, allocations: 23.16 kB / 3.713 GB, free: 55.42 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/7.713, allocations: 32.44 kB / 3.713 GB, free: 55.42 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001275/7.715, allocations: 0.5443 MB / 3.714 GB, free: 55.23 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/7.716, allocations: 0.6584 MB / 3.715 GB, free: 54.87 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.034e-05/7.716, allocations: 7.031 kB / 3.715 GB, free: 54.86 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.817e-05/7.716, allocations: 6.844 kB / 3.715 GB, free: 54.86 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.835e-05/7.716, allocations: 18.25 kB / 3.715 GB, free: 54.86 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02362/7.74, allocations: 12.13 MB / 3.726 GB, free: 46.38 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008465/7.741, allocations: 327.1 kB / 3.727 GB, free: 46.24 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005144/7.741, allocations: 232.1 kB / 3.727 GB, free: 46.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1221/7.863, allocations: 55.7 MB / 3.781 GB, free: 25.33 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.834e-05/7.863, allocations: 38.03 kB / 3.781 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=47): time 3.346e-06/7.863, allocations: 0 / 3.781 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of matching and sorting (n=51): time 0.007536/7.871, allocations: 1.849 MB / 3.783 GB, free: 24.46 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.266e-05/7.871, allocations: 116.4 kB / 3.783 GB, free: 24.34 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007167/7.872, allocations: 378.1 kB / 3.784 GB, free: 24.14 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.831e-05/7.872, allocations: 29.7 kB / 3.784 GB, free: 24.1 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002783/7.872, allocations: 277.5 kB / 3.784 GB, free: 23.89 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/7.872, allocations: 163.5 kB / 3.784 GB, free: 23.76 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.056e-05/7.872, allocations: 0 / 3.784 GB, free: 23.76 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001811/7.873, allocations: 365.4 kB / 3.785 GB, free: 23.43 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003602/7.873, allocations: 218.3 kB / 3.785 GB, free: 23.34 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004189/7.873, allocations: 376 kB / 3.785 GB, free: 23.05 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/7.875, allocations: 356.1 kB / 3.785 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/7.875, allocations: 2.969 kB / 3.785 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003509/7.878, allocations: 1.126 MB / 3.787 GB, free: 22.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008306/7.879, allocations: 1.741 MB / 3.788 GB, free: 20.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/7.879, allocations: 6.438 kB / 3.788 GB, free: 20.69 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001368/7.881, allocations: 305.2 kB / 3.789 GB, free: 20.61 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005835/7.881, allocations: 143.8 kB / 3.789 GB, free: 20.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/7.883, allocations: 1.033 MB / 3.79 GB, free: 19.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/7.884, allocations: 89.72 kB / 3.79 GB, free: 19.87 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/7.885, allocations: 39.55 kB / 3.79 GB, free: 19.86 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/7.885, allocations: 8.438 kB / 3.79 GB, free: 19.86 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002322/7.887, allocations: 0.7402 MB / 3.791 GB, free: 19.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/7.887, allocations: 4.438 kB / 3.791 GB, free: 19.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/7.888, allocations: 288.4 kB / 3.791 GB, free: 19.54 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005746/7.889, allocations: 146.2 kB / 3.791 GB, free: 19.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/7.891, allocations: 0.9241 MB / 3.792 GB, free: 18.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008918/7.891, allocations: 74.89 kB / 3.792 GB, free: 18.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.624e-05/7.892, allocations: 41.59 kB / 3.792 GB, free: 18.83 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (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 20} Notification: Performance of prepare postOptimizeDAE: time 0.0002997/7.892, allocations: 122.3 kB / 3.792 GB, free: 18.71 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009523/7.893, allocations: 271.2 kB / 3.792 GB, free: 18.64 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00466/7.898, allocations: 2.591 MB / 3.795 GB, free: 17.57 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.534e-05/7.898, allocations: 32.53 kB / 3.795 GB, free: 17.56 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/7.898, allocations: 0 / 3.795 GB, free: 17.56 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/7.898, allocations: 4.922 kB / 3.795 GB, free: 17.56 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007823/7.905, allocations: 3.464 MB / 3.798 GB, free: 16.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/7.906, allocations: 3.938 kB / 3.798 GB, free: 16.01 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001011/7.907, allocations: 154.1 kB / 3.798 GB, free: 16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003357/7.907, allocations: 64.94 kB / 3.798 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-05/7.907, allocations: 14.8 kB / 3.799 GB, free: 15.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/7.908, allocations: 1.218 MB / 3.8 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/7.908, allocations: 0 / 3.8 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004301/7.913, allocations: 2.698 MB / 3.802 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006665/7.913, allocations: 267.7 kB / 3.803 GB, free: 12.08 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/7.914, allocations: 4 kB / 3.803 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007669/7.914, allocations: 67.39 kB / 3.803 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/7.914, allocations: 58.94 kB / 3.803 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.578e-05/7.915, allocations: 27.94 kB / 3.803 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0005294/7.915, allocations: 340.9 kB / 3.803 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007208/7.922, allocations: 1.361 MB / 3.804 GB, free: 10.33 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01128/7.934, allocations: 1.877 MB / 3.806 GB, free: 8.797 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004153/7.938, allocations: 1.572 MB / 3.808 GB, free: 7.348 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.627e-06/7.938, allocations: 0 / 3.808 GB, free: 7.348 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001819/7.94, allocations: 1.108 MB / 3.809 GB, free: 6.309 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/7.942, allocations: 258 kB / 3.809 GB, free: 6.125 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003813/7.945, allocations: 1.878 MB / 3.811 GB, free: 4.418 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001107/7.947, allocations: 1.152 MB / 3.812 GB, free: 3.391 MB / 0.5417 GB Notification: Performance of SimCode: time 1.894e-06/7.947, allocations: 0 / 3.812 GB, free: 3.391 MB / 0.5417 GB Notification: Performance of Templates: time 0.3603/8.307, allocations: 45.24 MB / 3.856 GB, free: 120.2 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Machines/TestWaterPumpStorage/TestWaterPumpStorage.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches