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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 182.6 kB / 18.09 MB, free: 3.613 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.385/1.385, allocations: 223.3 MB / 242.1 MB, free: 9.988 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.0008725/0.0008726, allocations: 101.9 kB / 293.3 MB, free: 10.57 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.3785/0.3785, allocations: 44.15 MB / 388.5 MB, free: 38.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004107/0.0004108, allocations: 8 kB / 461.1 MB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4259/0.4263, allocations: 61.88 MB / 0.5107 GB, free: 37.67 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.406/6.832, allocations: 2.788 GB / 3.298 GB, free: 67.37 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/6.833, allocations: 91.94 kB / 3.298 GB, free: 67.28 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.457/8.29, allocations: 425.2 MB / 3.714 GB, free: 45.41 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.994e-06/8.29, allocations: 3.469 kB / 3.714 GB, free: 45.41 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.862e-05/8.29, allocations: 19.69 kB / 3.714 GB, free: 45.4 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.007363/8.297, allocations: 1.829 MB / 3.715 GB, free: 44.27 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/8.297, allocations: 12.53 kB / 3.715 GB, free: 44.27 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002684/8.3, allocations: 330 kB / 3.716 GB, free: 44.21 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001381/8.301, allocations: 0.5858 MB / 3.716 GB, free: 43.81 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.655e-05/8.302, allocations: 50.61 kB / 3.716 GB, free: 43.79 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001837/8.302, allocations: 54.66 kB / 3.716 GB, free: 43.77 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002527/8.304, allocations: 1.011 MB / 3.717 GB, free: 43.34 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.177e-05/8.304, allocations: 0 / 3.717 GB, free: 43.34 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.681e-05/8.304, allocations: 30.56 kB / 3.717 GB, free: 43.32 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.252e-05/8.304, allocations: 17.5 kB / 3.717 GB, free: 43.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002206/8.307, allocations: 0.9073 MB / 3.718 GB, free: 43.1 MB / 0.5261 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.004447/8.311, allocations: 4.536 MB / 3.723 GB, free: 39.29 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002096/8.313, allocations: 0.7974 MB / 3.724 GB, free: 39.07 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005234/8.314, allocations: 299.1 kB / 3.724 GB, free: 38.97 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08641/8.4, allocations: 55.56 MB / 3.778 GB, free: 1.172 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.127e-05/8.4, allocations: 39 kB / 3.778 GB, free: 1.121 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=48): time 2.865e-06/8.4, allocations: 4 kB / 3.778 GB, free: 1.117 MB / 0.5417 GB Notification: Performance of matching and sorting (n=52): time 0.2884/8.689, allocations: 2.239 MB / 3.78 GB, free: 76.94 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/8.689, allocations: 109.7 kB / 3.78 GB, free: 76.82 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008721/8.69, allocations: 0.5134 MB / 3.781 GB, free: 76.7 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.575e-05/8.69, allocations: 35.8 kB / 3.781 GB, free: 76.66 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/8.69, allocations: 321.7 kB / 3.781 GB, free: 76.52 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/8.69, allocations: 182.5 kB / 3.781 GB, free: 76.43 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.57e-05/8.69, allocations: 10.94 kB / 3.781 GB, free: 76.43 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.932e-05/8.69, allocations: 373.2 kB / 3.782 GB, free: 76.12 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006172/8.691, allocations: 266.4 kB / 3.782 GB, free: 76.12 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006494/8.692, allocations: 438.1 kB / 3.783 GB, free: 75.94 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/8.693, allocations: 0.6817 MB / 3.783 GB, free: 75.77 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/8.693, allocations: 3.125 kB / 3.783 GB, free: 75.77 MB / 0.5417 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002102/8.695, allocations: 0.958 MB / 3.784 GB, free: 75.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.866e-05/8.695, allocations: 222 kB / 3.784 GB, free: 75.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/8.695, allocations: 2.719 kB / 3.784 GB, free: 75.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002132/8.697, allocations: 475.3 kB / 3.785 GB, free: 75.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004328/8.698, allocations: 134.2 kB / 3.785 GB, free: 75.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/8.699, allocations: 0.9243 MB / 3.786 GB, free: 74.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007442/8.699, allocations: 97.12 kB / 3.786 GB, free: 74.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.188e-05/8.7, allocations: 31.08 kB / 3.786 GB, free: 74.91 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/8.7, allocations: 2.969 kB / 3.786 GB, free: 74.91 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002346/8.702, allocations: 0.9215 MB / 3.787 GB, free: 74.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/8.702, allocations: 8.75 kB / 3.787 GB, free: 74.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/8.703, allocations: 332.9 kB / 3.787 GB, free: 74.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004532/8.704, allocations: 138.3 kB / 3.787 GB, free: 74.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/8.705, allocations: 0.8957 MB / 3.788 GB, free: 74.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006725/8.706, allocations: 89.19 kB / 3.788 GB, free: 74.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.626e-05/8.706, allocations: 35.31 kB / 3.788 GB, free: 74.34 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 () * Number of clocked 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.0003679/8.706, allocations: 287.7 kB / 3.789 GB, free: 74.15 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/8.706, allocations: 65.31 kB / 3.789 GB, free: 74.12 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003183/8.709, allocations: 2.901 MB / 3.791 GB, free: 73.86 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.29e-05/8.709, allocations: 44.53 kB / 3.791 GB, free: 73.86 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/8.709, allocations: 0 / 3.791 GB, free: 73.86 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/8.709, allocations: 4.516 kB / 3.792 GB, free: 73.86 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004328/8.714, allocations: 4.077 MB / 3.795 GB, free: 73.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/8.714, allocations: 0 / 3.795 GB, free: 73.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006456/8.714, allocations: 168.6 kB / 3.796 GB, free: 73.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003295/8.715, allocations: 82.09 kB / 3.796 GB, free: 73.44 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.475e-05/8.715, allocations: 18.39 kB / 3.796 GB, free: 73.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000436/8.715, allocations: 1.18 MB / 3.797 GB, free: 72.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/8.715, allocations: 3.469 kB / 3.797 GB, free: 72.34 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002993/8.718, allocations: 2.574 MB / 3.799 GB, free: 72.06 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004645/8.719, allocations: 324.8 kB / 3.8 GB, free: 71.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001495/8.719, allocations: 13.39 kB / 3.8 GB, free: 71.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005958/8.72, allocations: 74.34 kB / 3.8 GB, free: 71.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/8.72, allocations: 56.73 kB / 3.8 GB, free: 71.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.012e-05/8.72, allocations: 26.73 kB / 3.8 GB, free: 71.89 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0006175/8.72, allocations: 464 kB / 3.8 GB, free: 71.79 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.7e-07/8.72, allocations: 0.5469 kB / 3.8 GB, free: 71.79 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006404/8.727, allocations: 1.405 MB / 3.802 GB, free: 71.79 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 25 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.region3boundary,$cse15.region3boundary,$cse17.phase,$cse17.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * 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.009467/8.736, allocations: 1.729 MB / 3.803 GB, free: 71.64 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003422/8.74, allocations: 1.48 MB / 3.805 GB, free: 71.61 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/8.74, allocations: 3.281 kB / 3.805 GB, free: 71.61 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001186/8.741, allocations: 0.858 MB / 3.806 GB, free: 71.61 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001873/8.743, allocations: 328.2 kB / 3.806 GB, free: 71.61 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003666/8.747, allocations: 3.113 MB / 3.809 GB, free: 70.32 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005507/8.747, allocations: 1.146 MB / 3.81 GB, free: 69.61 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00123/8.748, allocations: 0.6556 MB / 3.811 GB, free: 69.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001939/8.749, allocations: 67.77 kB / 3.811 GB, free: 69.59 MB / 0.5417 GB Notification: Performance of SimCode: time 5.31e-07/8.749, allocations: 2.438 kB / 3.811 GB, free: 69.59 MB / 0.5417 GB Notification: Performance of Templates: time 0.06678/8.815, allocations: 46.17 MB / 3.856 GB, free: 68.18 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/jenkins1/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