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.001042/0.001042, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.308/1.308, allocations: 221.4 MB / 236 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.0008292/0.0008292, allocations: 83.89 kB / 287 MB, free: 264 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2036/0.2036, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.907e-05/2.931e-05, allocations: 4.219 kB / 451.8 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1309, allocations: 61.92 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.241/6.371, allocations: 2.787 GB / 3.289 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/6.372, allocations: 84.92 kB / 3.289 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.609/7.981, allocations: 443.8 MB / 3.722 GB, free: 62.86 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.863e-06/7.981, allocations: 0 / 3.722 GB, free: 62.86 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.874e-05/7.981, allocations: 19.62 kB / 3.722 GB, free: 62.85 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.007004/7.988, allocations: 1.751 MB / 3.724 GB, free: 61.95 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/7.988, allocations: 6.75 kB / 3.724 GB, free: 61.95 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002502/7.991, allocations: 332.6 kB / 3.724 GB, free: 61.88 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/7.992, allocations: 0.5618 MB / 3.725 GB, free: 61.53 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.794e-05/7.992, allocations: 50.25 kB / 3.725 GB, free: 61.51 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.482e-05/7.992, allocations: 57.03 kB / 3.725 GB, free: 61.49 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/7.994, allocations: 0.9713 MB / 3.726 GB, free: 61.05 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/7.994, allocations: 2.531 kB / 3.726 GB, free: 61.05 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.956e-05/7.994, allocations: 30.31 kB / 3.726 GB, free: 61.03 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.391e-05/7.994, allocations: 26.56 kB / 3.726 GB, free: 61.02 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/7.996, allocations: 0.8047 MB / 3.727 GB, free: 60.8 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.004335/8, allocations: 4.525 MB / 3.731 GB, free: 57.03 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001721/8.002, allocations: 0.7279 MB / 3.732 GB, free: 56.8 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003108/8.002, allocations: 234.8 kB / 3.732 GB, free: 56.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09977/8.102, allocations: 55.76 MB / 3.787 GB, free: 20.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.551e-05/8.102, allocations: 42.72 kB / 3.787 GB, free: 20.66 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 4.358e-06/8.102, allocations: 0 / 3.787 GB, free: 20.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=52): time 0.006641/8.109, allocations: 1.846 MB / 3.788 GB, free: 19.84 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/8.109, allocations: 116.5 kB / 3.789 GB, free: 19.71 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000728/8.109, allocations: 445.4 kB / 3.789 GB, free: 19.49 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.319e-05/8.11, allocations: 33.7 kB / 3.789 GB, free: 19.45 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002035/8.11, allocations: 330.7 kB / 3.789 GB, free: 19.19 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/8.11, allocations: 186.8 kB / 3.789 GB, free: 19.05 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.656e-05/8.11, allocations: 11.81 kB / 3.79 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001229/8.11, allocations: 365.7 kB / 3.79 GB, free: 18.71 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003191/8.11, allocations: 194.7 kB / 3.79 GB, free: 18.63 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/8.111, allocations: 359.8 kB / 3.79 GB, free: 18.35 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003891/8.111, allocations: 241.8 kB / 3.791 GB, free: 18.25 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/8.111, allocations: 3.719 kB / 3.791 GB, free: 18.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001532/8.113, allocations: 0.8025 MB / 3.791 GB, free: 17.92 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000388/8.113, allocations: 1.745 MB / 3.793 GB, free: 16.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/8.113, allocations: 3.531 kB / 3.793 GB, free: 16.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001785/8.115, allocations: 391 kB / 3.793 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004744/8.115, allocations: 130.9 kB / 3.794 GB, free: 15.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/8.117, allocations: 0.8759 MB / 3.794 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008357/8.117, allocations: 94.31 kB / 3.795 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-05/8.117, allocations: 32.69 kB / 3.795 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/8.117, allocations: 2.531 kB / 3.795 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00184/8.119, allocations: 0.7599 MB / 3.795 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/8.119, allocations: 7.438 kB / 3.795 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/8.121, allocations: 303.3 kB / 3.796 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004502/8.121, allocations: 139.2 kB / 3.796 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009301/8.122, allocations: 0.8374 MB / 3.797 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000756/8.123, allocations: 89.33 kB / 3.797 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.577e-05/8.123, allocations: 34.58 kB / 3.797 GB, free: 14.23 MB / 0.5261 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.0002455/8.123, allocations: 151.6 kB / 3.797 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/8.123, allocations: 63.59 kB / 3.797 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003143/8.126, allocations: 2.836 MB / 3.8 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.12e-05/8.126, allocations: 46.89 kB / 3.8 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/8.126, allocations: 3.562 kB / 3.8 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/8.127, allocations: 11.19 kB / 3.8 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004295/8.131, allocations: 3.997 MB / 3.804 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/8.131, allocations: 0 / 3.804 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007173/8.132, allocations: 176.5 kB / 3.804 GB, free: 10.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003027/8.132, allocations: 74.67 kB / 3.804 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.872e-05/8.132, allocations: 14.72 kB / 3.804 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00107/8.133, allocations: 1.185 MB / 3.805 GB, free: 25.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/8.133, allocations: 3.562 kB / 3.805 GB, free: 25.57 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002365/8.135, allocations: 2.367 MB / 3.807 GB, free: 24.43 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004514/8.136, allocations: 323.2 kB / 3.808 GB, free: 24.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.191e-05/8.136, allocations: 11.69 kB / 3.808 GB, free: 24.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005247/8.136, allocations: 80.58 kB / 3.808 GB, free: 24.16 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/8.137, allocations: 56.78 kB / 3.808 GB, free: 24.15 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.127e-05/8.137, allocations: 25.45 kB / 3.808 GB, free: 24.14 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005752/8.137, allocations: 446.9 kB / 3.808 GB, free: 23.94 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.4e-07/8.137, allocations: 0 / 3.808 GB, free: 23.94 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008306/8.146, allocations: 1.404 MB / 3.81 GB, free: 23.04 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 () * 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.008486/8.154, allocations: 1.736 MB / 3.811 GB, free: 21.69 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00267/8.157, allocations: 1.286 MB / 3.813 GB, free: 20.49 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/8.157, allocations: 4 kB / 3.813 GB, free: 20.49 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001023/8.158, allocations: 0.8016 MB / 3.813 GB, free: 19.73 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001793/8.16, allocations: 312.7 kB / 3.814 GB, free: 19.52 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002787/8.162, allocations: 1.95 MB / 3.816 GB, free: 17.73 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007411/8.163, allocations: 1.169 MB / 3.817 GB, free: 16.7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001179/8.164, allocations: 0.6838 MB / 3.817 GB, free: 16.29 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/8.165, allocations: 59.38 kB / 3.817 GB, free: 16.24 MB / 0.5417 GB Notification: Performance of SimCode: time 7.71e-07/8.165, allocations: 0 / 3.817 GB, free: 16.24 MB / 0.5417 GB Notification: Performance of Templates: time 0.395/8.56, allocations: 46.28 MB / 3.863 GB, free: 76.95 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