Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001349/0.001349, allocations: 190.9 kB / 16.78 MB, free: 4.914 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 226.5 MB / 244.1 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008596/0.0008594, allocations: 96.86 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.389/0.389, allocations: 44.82 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003399, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4331/0.4335, allocations: 62.96 MB / 0.5165 GB, free: 37.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.657/7.091, allocations: 2.788 GB / 3.305 GB, free: 163.9 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/7.091, allocations: 83.27 kB / 3.305 GB, free: 163.9 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.435/8.526, allocations: 425.3 MB / 3.72 GB, free: 68.82 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.603e-06/8.526, allocations: 0 / 3.72 GB, free: 68.82 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.103e-05/8.527, allocations: 18.33 kB / 3.72 GB, free: 68.82 MB / 0.5417 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.006394/8.533, allocations: 1.835 MB / 3.722 GB, free: 68.14 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/8.533, allocations: 9.938 kB / 3.722 GB, free: 68.14 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002352/8.535, allocations: 331.2 kB / 3.722 GB, free: 68.11 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009604/8.536, allocations: 0.5831 MB / 3.723 GB, free: 67.86 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.527e-05/8.536, allocations: 54.56 kB / 3.723 GB, free: 67.85 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.328e-05/8.536, allocations: 58.95 kB / 3.723 GB, free: 67.85 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002154/8.539, allocations: 1.002 MB / 3.724 GB, free: 67.66 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.541e-05/8.539, allocations: 5.812 kB / 3.724 GB, free: 67.65 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.656e-05/8.539, allocations: 29.92 kB / 3.724 GB, free: 67.65 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.03e-05/8.539, allocations: 25.75 kB / 3.724 GB, free: 67.65 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00214/8.541, allocations: 0.903 MB / 3.725 GB, free: 67.65 MB / 0.5417 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.004032/8.545, allocations: 4.527 MB / 3.73 GB, free: 64.42 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/8.547, allocations: 0.803 MB / 3.73 GB, free: 64.39 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005733/8.548, allocations: 303.1 kB / 3.731 GB, free: 64.39 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09871/8.647, allocations: 61.8 MB / 3.791 GB, free: 39.84 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.484e-05/8.647, allocations: 47.06 kB / 3.791 GB, free: 39.79 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=48): time 2.394e-06/8.647, allocations: 0 / 3.791 GB, free: 39.79 MB / 0.5573 GB Notification: Performance of matching and sorting (n=52): time 0.006521/8.653, allocations: 2.255 MB / 3.793 GB, free: 39.38 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.266e-05/8.653, allocations: 111.1 kB / 3.793 GB, free: 39.25 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005916/8.654, allocations: 0.5068 MB / 3.794 GB, free: 39.12 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.412e-05/8.654, allocations: 33.77 kB / 3.794 GB, free: 39.09 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/8.654, allocations: 330.5 kB / 3.794 GB, free: 38.95 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/8.654, allocations: 177.3 kB / 3.794 GB, free: 38.86 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.741e-05/8.654, allocations: 16.12 kB / 3.794 GB, free: 38.86 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001432/8.654, allocations: 370.6 kB / 3.795 GB, free: 38.54 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005764/8.655, allocations: 269.5 kB / 3.795 GB, free: 38.54 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006463/8.656, allocations: 431.6 kB / 3.795 GB, free: 38.36 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/8.657, allocations: 0.6787 MB / 3.796 GB, free: 38.17 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/8.657, allocations: 0 / 3.796 GB, free: 38.17 MB / 0.5573 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002128/8.659, allocations: 0.9598 MB / 3.797 GB, free: 38.08 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000124/8.659, allocations: 232.6 kB / 3.797 GB, free: 37.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/8.659, allocations: 5.344 kB / 3.797 GB, free: 37.82 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/8.661, allocations: 471.5 kB / 3.798 GB, free: 37.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/8.662, allocations: 129.6 kB / 3.798 GB, free: 37.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/8.663, allocations: 0.9284 MB / 3.799 GB, free: 37.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007584/8.664, allocations: 92.86 kB / 3.799 GB, free: 37.26 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.964e-05/8.664, allocations: 34.34 kB / 3.799 GB, free: 37.26 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.478e-06/8.664, allocations: 3.125 kB / 3.799 GB, free: 37.26 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002451/8.667, allocations: 0.9204 MB / 3.8 GB, free: 37.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/8.667, allocations: 7.812 kB / 3.8 GB, free: 37.21 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/8.668, allocations: 339.8 kB / 3.8 GB, free: 37.19 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000438/8.669, allocations: 138.2 kB / 3.8 GB, free: 37.19 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/8.67, allocations: 0.8931 MB / 3.801 GB, free: 36.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006985/8.671, allocations: 98.62 kB / 3.801 GB, free: 36.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.66e-05/8.671, allocations: 30.62 kB / 3.801 GB, free: 36.64 MB / 0.5573 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.0004601/8.671, allocations: 286.6 kB / 3.801 GB, free: 36.45 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/8.671, allocations: 60.34 kB / 3.801 GB, free: 36.42 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003291/8.674, allocations: 2.908 MB / 3.804 GB, free: 36.09 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.563e-05/8.675, allocations: 45.28 kB / 3.804 GB, free: 36.08 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/8.675, allocations: 0 / 3.804 GB, free: 36.08 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/8.675, allocations: 3.656 kB / 3.804 GB, free: 36.08 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004437/8.679, allocations: 4.083 MB / 3.808 GB, free: 35.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/8.679, allocations: 0 / 3.808 GB, free: 35.62 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006735/8.68, allocations: 166.7 kB / 3.808 GB, free: 35.62 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003248/8.68, allocations: 80.8 kB / 3.809 GB, free: 35.61 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.776e-05/8.68, allocations: 17.39 kB / 3.809 GB, free: 35.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000704/8.681, allocations: 1.178 MB / 3.81 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/8.681, allocations: 0 / 3.81 GB, free: 34.5 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003054/8.684, allocations: 2.566 MB / 3.812 GB, free: 34.21 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004617/8.684, allocations: 328.7 kB / 3.813 GB, free: 34.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.635e-05/8.684, allocations: 12.81 kB / 3.813 GB, free: 34.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005085/8.685, allocations: 83.19 kB / 3.813 GB, free: 34 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/8.685, allocations: 52.7 kB / 3.813 GB, free: 34 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.846e-05/8.685, allocations: 26.3 kB / 3.813 GB, free: 34 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0005425/8.686, allocations: 460.9 kB / 3.813 GB, free: 33.9 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.81e-07/8.686, allocations: 0 / 3.813 GB, free: 33.9 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005938/8.692, allocations: 1.415 MB / 3.815 GB, free: 33.71 MB / 0.5573 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.007464/8.699, allocations: 1.738 MB / 3.816 GB, free: 33.31 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00367/8.703, allocations: 1.478 MB / 3.818 GB, free: 33.27 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/8.703, allocations: 0 / 3.818 GB, free: 33.27 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001351/8.704, allocations: 0.8624 MB / 3.819 GB, free: 33.27 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002037/8.706, allocations: 331.4 kB / 3.819 GB, free: 33.24 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003888/8.71, allocations: 3.155 MB / 3.822 GB, free: 31.82 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007829/8.711, allocations: 1.138 MB / 3.823 GB, free: 31.09 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/8.711, allocations: 72.77 kB / 3.823 GB, free: 31.09 MB / 0.5573 GB Notification: Performance of SimCode: time 1.483e-06/8.711, allocations: 0 / 3.823 GB, free: 31.09 MB / 0.5573 GB Notification: Performance of Templates: time 0.04789/8.759, allocations: 38.42 MB / 3.861 GB, free: 28.2 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches