Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009828/0.0009827, allocations: 202.4 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001028/0.001028, allocations: 96.72 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1946/0.1946, allocations: 45.14 MB / 383.7 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.48e-05/1.481e-05, allocations: 0 / 453.2 MB, free: 75.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.336/6.438, allocations: 2.788 GB / 3.292 GB, free: 59.63 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/6.439, allocations: 87.94 kB / 3.292 GB, free: 59.58 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.621/8.06, allocations: 439.6 MB / 3.721 GB, free: 35.11 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.583e-06/8.06, allocations: 0 / 3.721 GB, free: 35.11 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.549e-05/8.06, allocations: 19.94 kB / 3.721 GB, free: 35.09 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.008145/8.068, allocations: 1.756 MB / 3.723 GB, free: 33.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/8.068, allocations: 12.03 kB / 3.723 GB, free: 33.29 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002867/8.071, allocations: 326.8 kB / 3.723 GB, free: 32.96 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/8.073, allocations: 0.5608 MB / 3.724 GB, free: 32.38 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.679e-05/8.073, allocations: 28 kB / 3.724 GB, free: 32.35 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000198/8.073, allocations: 32 kB / 3.724 GB, free: 32.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001124/8.074, allocations: 0.5382 MB / 3.724 GB, free: 31.78 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/8.075, allocations: 0.6704 MB / 3.725 GB, free: 31.04 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/8.075, allocations: 7.938 kB / 3.725 GB, free: 31.04 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.881e-05/8.075, allocations: 0 / 3.725 GB, free: 31.04 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.227e-05/8.075, allocations: 21.31 kB / 3.725 GB, free: 31.02 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.01979/8.095, allocations: 12.74 MB / 3.738 GB, free: 16.86 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009133/8.096, allocations: 455.9 kB / 3.738 GB, free: 16.41 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00035/8.097, allocations: 227.1 kB / 3.738 GB, free: 16.19 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4743/8.571, allocations: 61.99 MB / 3.799 GB, free: 56.28 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.906e-05/8.571, allocations: 37.62 kB / 3.799 GB, free: 56.24 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=47): time 3.417e-06/8.571, allocations: 0 / 3.799 GB, free: 56.24 MB / 0.5417 GB Notification: Performance of matching and sorting (n=51): time 0.007617/8.579, allocations: 1.817 MB / 3.801 GB, free: 55.91 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/8.579, allocations: 109.9 kB / 3.801 GB, free: 55.78 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000587/8.579, allocations: 377.1 kB / 3.801 GB, free: 55.67 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/8.579, allocations: 27.27 kB / 3.801 GB, free: 55.64 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002711/8.58, allocations: 330.9 kB / 3.801 GB, free: 55.49 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/8.58, allocations: 168.9 kB / 3.802 GB, free: 55.4 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.11e-05/8.58, allocations: 2.812 kB / 3.802 GB, free: 55.4 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001384/8.58, allocations: 362.6 kB / 3.802 GB, free: 55.09 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003305/8.58, allocations: 189.4 kB / 3.802 GB, free: 55.09 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005073/8.581, allocations: 353.9 kB / 3.802 GB, free: 54.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/8.582, allocations: 327.9 kB / 3.803 GB, free: 54.91 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/8.582, allocations: 2.781 kB / 3.803 GB, free: 54.91 MB / 0.5417 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002317/8.584, allocations: 0.8352 MB / 3.804 GB, free: 54.83 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004251/8.585, allocations: 1.746 MB / 3.805 GB, free: 53.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/8.585, allocations: 8.234 kB / 3.805 GB, free: 53.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/8.586, allocations: 288 kB / 3.806 GB, free: 53.01 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000454/8.587, allocations: 138.3 kB / 3.806 GB, free: 53.01 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/8.588, allocations: 0.962 MB / 3.807 GB, free: 52.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006733/8.588, allocations: 88.25 kB / 3.807 GB, free: 52.47 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.562e-05/8.589, allocations: 33.81 kB / 3.807 GB, free: 52.47 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.087e-06/8.589, allocations: 5.281 kB / 3.807 GB, free: 52.47 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001603/8.59, allocations: 0.6815 MB / 3.807 GB, free: 52.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/8.59, allocations: 7.375 kB / 3.807 GB, free: 52.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/8.591, allocations: 289.2 kB / 3.808 GB, free: 52.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004194/8.592, allocations: 133 kB / 3.808 GB, free: 52.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009013/8.593, allocations: 0.8706 MB / 3.809 GB, free: 51.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005365/8.593, allocations: 80.84 kB / 3.809 GB, free: 51.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.488e-05/8.593, allocations: 34.52 kB / 3.809 GB, free: 51.9 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.0001648/8.593, allocations: 118.8 kB / 3.809 GB, free: 51.79 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.739e-05/8.594, allocations: 61 kB / 3.809 GB, free: 51.77 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002863/8.596, allocations: 2.626 MB / 3.811 GB, free: 51.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.891e-05/8.596, allocations: 36.81 kB / 3.812 GB, free: 51.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/8.596, allocations: 4.5 kB / 3.812 GB, free: 51.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/8.596, allocations: 7.703 kB / 3.812 GB, free: 51.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003563/8.6, allocations: 3.607 MB / 3.815 GB, free: 51.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/8.6, allocations: 0 / 3.815 GB, free: 51.12 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000662/8.601, allocations: 173.3 kB / 3.815 GB, free: 51.12 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001877/8.601, allocations: 71.03 kB / 3.815 GB, free: 51.11 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.218e-05/8.601, allocations: 15.09 kB / 3.815 GB, free: 51.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004634/8.601, allocations: 1.199 MB / 3.816 GB, free: 50.01 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/8.601, allocations: 0 / 3.816 GB, free: 50.01 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002404/8.604, allocations: 2.263 MB / 3.819 GB, free: 49.74 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003259/8.604, allocations: 324.5 kB / 3.819 GB, free: 49.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.897e-05/8.604, allocations: 2.344 kB / 3.819 GB, free: 49.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004781/8.605, allocations: 66.58 kB / 3.819 GB, free: 49.58 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/8.605, allocations: 55.23 kB / 3.819 GB, free: 49.58 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.031e-05/8.605, allocations: 23.16 kB / 3.819 GB, free: 49.58 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003622/8.605, allocations: 396.8 kB / 3.819 GB, free: 49.47 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.7e-07/8.605, allocations: 0 / 3.819 GB, free: 49.47 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006154/8.611, allocations: 1.357 MB / 3.821 GB, free: 49.47 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: 23 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.region3boundary,$cse15.region3boundary,$cse16.phase,$cse16.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 (65): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.006087/8.618, allocations: 1.828 MB / 3.823 GB, free: 49.32 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002419/8.62, allocations: 1.199 MB / 3.824 GB, free: 49.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/8.62, allocations: 0 / 3.824 GB, free: 49.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009091/8.621, allocations: 0.7455 MB / 3.825 GB, free: 49.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/8.622, allocations: 286.9 kB / 3.825 GB, free: 49.29 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/8.625, allocations: 1.821 MB / 3.827 GB, free: 48.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000557/8.626, allocations: 1.149 MB / 3.828 GB, free: 48.19 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001083/8.627, allocations: 0.6877 MB / 3.828 GB, free: 48.18 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/8.627, allocations: 54.55 kB / 3.828 GB, free: 48.18 MB / 0.5417 GB Notification: Performance of SimCode: time 7.01e-07/8.627, allocations: 0 / 3.828 GB, free: 48.18 MB / 0.5417 GB Notification: Performance of Templates: time 0.05429/8.681, allocations: 39.03 MB / 3.867 GB, free: 45.93 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches