Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 188.9 kB / 17.27 MB, free: 4.504 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.353/1.353, allocations: 222.9 MB / 240.9 MB, free: 10.98 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.0009801/0.00098, allocations: 109.6 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008297/0.0008298, allocations: 43.94 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2234, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004371/0.2278, allocations: 4.847 MB / 404.3 MB, free: 28.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.2297, allocations: 1.34 MB / 405.7 MB, free: 27.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002572/0.23, allocations: 11.94 kB / 405.7 MB, free: 27.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003402/0.2303, allocations: 127.2 kB / 405.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004935/0.2308, allocations: 297.9 kB / 406.1 MB, free: 26.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.2312, allocations: 191.7 kB / 406.3 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006745/0.2319, allocations: 0.9879 MB / 407.3 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002736/0.2322, allocations: 257.9 kB / 407.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/0.2325, allocations: 374.6 kB / 407.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003176/0.2328, allocations: 438.1 kB / 408.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.224e-05/0.2329, allocations: 64 kB / 408.4 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.233, allocations: 64 kB / 408.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.2332, allocations: 175.3 kB / 408.6 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002948/0.2335, allocations: 449.8 kB / 409 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005638/0.234, allocations: 1.035 MB / 410.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.309e-06/0.234, allocations: 0 / 410.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.234, allocations: 3.938 kB / 410.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.2341, allocations: 0 / 410.1 MB, free: 22.71 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001764/0.2358, allocations: 1.216 MB / 411.3 MB, free: 21.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.2359, allocations: 8.031 kB / 411.3 MB, free: 21.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.236, allocations: 103.8 kB / 411.4 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005377/0.2366, allocations: 0.512 MB / 411.9 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.2367, allocations: 93.28 kB / 412 MB, free: 20.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/0.2368, allocations: 56.36 kB / 412.1 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.2378, allocations: 0.8044 MB / 412.9 MB, free: 19.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.2378, allocations: 0 / 412.9 MB, free: 19.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.225e-05/0.2379, allocations: 28 kB / 412.9 MB, free: 19.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.2379, allocations: 12 kB / 412.9 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.2389, allocations: 0.5035 MB / 413.4 MB, free: 19.15 MB / 298.7 MB 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.002504/0.2414, allocations: 2.154 MB / 415.6 MB, free: 16.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.2425, allocations: 0.5308 MB / 416.1 MB, free: 16.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004901/0.243, allocations: 266.3 kB / 416.4 MB, free: 16.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.748e-05/0.243, allocations: 13.66 kB / 416.4 MB, free: 16.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006904/0.2437, allocations: 327 kB / 416.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 2.715e-06/0.2438, allocations: 0 / 416.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.0044/0.2482, allocations: 1.481 MB / 418.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001709/0.2484, allocations: 0.8272 MB / 419 MB, free: 13.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005703/0.2489, allocations: 0.5901 MB / 419.6 MB, free: 12.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.748e-05/0.249, allocations: 45.64 kB / 419.6 MB, free: 12.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.2492, allocations: 336.8 kB / 420 MB, free: 12.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.2493, allocations: 185.2 kB / 420.1 MB, free: 11.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/0.2495, allocations: 134.1 kB / 420.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.874e-05/0.2496, allocations: 374.8 kB / 420.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005011/0.2501, allocations: 221 kB / 420.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006411/0.2507, allocations: 0.5091 MB / 421.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.2518, allocations: 0.5693 MB / 421.9 MB, free: 10.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.2518, allocations: 0 / 421.9 MB, free: 10.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001949/0.2537, allocations: 0.9012 MB / 422.8 MB, free: 9.098 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.319e-05/0.2538, allocations: 67.33 kB / 422.9 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.2538, allocations: 3.984 kB / 422.9 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006467/0.2545, allocations: 225.6 kB / 423.1 MB, free: 8.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005865/0.2551, allocations: 115.8 kB / 423.2 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004886/0.2599, allocations: 4.187 MB / 427.4 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008066/0.2608, allocations: 87.48 kB / 427.5 MB, free: 4.133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/0.2608, allocations: 23.98 kB / 427.5 MB, free: 4.109 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002836/0.2611, allocations: 212.8 kB / 427.7 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.447e-05/0.2612, allocations: 79.16 kB / 427.8 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001226/0.2614, allocations: 74.86 kB / 427.9 MB, free: 3.742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.2614, allocations: 4 kB / 427.9 MB, free: 3.738 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2614, allocations: 0 / 427.9 MB, free: 3.738 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001737/0.2631, allocations: 1.054 MB / 428.9 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002219/0.2653, allocations: 1.544 MB / 430.5 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.2654, allocations: 0 / 430.5 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005721/0.2659, allocations: 107.9 kB / 430.6 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000478/0.2664, allocations: 177.7 kB / 430.8 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.2665, allocations: 12 kB / 430.8 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004368/0.2709, allocations: 3.601 MB / 434.4 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2709, allocations: 0 / 434.4 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006156/0.277, allocations: 3.008 MB / 437.4 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000306/0.2774, allocations: 212.1 kB / 437.6 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.82e-05/0.2775, allocations: 16.11 kB / 437.6 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005827/0.2781, allocations: 51.95 kB / 437.7 MB, free: 9.328 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.2782, allocations: 52.48 kB / 437.7 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-05/0.2783, allocations: 19.98 kB / 437.7 MB, free: 9.258 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004615/0.2788, allocations: 415.1 kB / 438.1 MB, free: 8.859 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2788, allocations: 0 / 438.1 MB, free: 8.859 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009445/0.2797, allocations: 303.7 kB / 438.4 MB, free: 8.562 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001687/0.2799, allocations: 123.2 kB / 438.6 MB, free: 8.434 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00196/0.2819, allocations: 1.011 MB / 439.6 MB, free: 7.371 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.2819, allocations: 4 kB / 439.6 MB, free: 7.367 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009207/0.2828, allocations: 0.5437 MB / 440.1 MB, free: 6.797 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000877/0.2837, allocations: 194.9 kB / 440.3 MB, free: 6.605 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002669/0.2864, allocations: 1.845 MB / 442.2 MB, free: 4.723 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.2868, allocations: 0.9316 MB / 443.1 MB, free: 3.766 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003713/0.2872, allocations: 85.22 kB / 443.2 MB, free: 3.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.2873, allocations: 47.44 kB / 443.2 MB, free: 3.633 MB / 314.7 MB Notification: Performance of SimCode: time 6.41e-07/0.2873, allocations: 0 / 443.2 MB, free: 3.633 MB / 314.7 MB Notification: Performance of Templates: time 0.02472/0.3121, allocations: 15.92 MB / 459.1 MB, free: 3.953 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches