Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 171.5 kB / 24.91 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9238/0.9238, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 3.938 kB / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.716e-05/2.897e-05, allocations: 6.312 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005073/0.005102, allocations: 4.779 MB / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002297/0.007399, allocations: 1.421 MB / 279.6 MB, free: 11.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003171/0.007716, allocations: 11.94 kB / 279.7 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004032/0.008119, allocations: 158.7 kB / 279.8 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006709/0.00879, allocations: 361.1 kB / 280.2 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004344/0.009224, allocations: 223.5 kB / 280.4 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009989/0.01022, allocations: 1.067 MB / 281.4 MB, free: 9.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002923/0.01052, allocations: 208.3 kB / 281.7 MB, free: 9.051 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007539/0.01127, allocations: 0.6082 MB / 282.3 MB, free: 8.441 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004383/0.01171, allocations: 327.1 kB / 282.6 MB, free: 8.121 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.01182, allocations: 87.94 kB / 282.7 MB, free: 8.035 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/0.01194, allocations: 88 kB / 282.8 MB, free: 7.949 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.01208, allocations: 199.3 kB / 282.9 MB, free: 7.754 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003225/0.0124, allocations: 331.3 kB / 283.3 MB, free: 7.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006951/0.0131, allocations: 0.7084 MB / 284 MB, free: 6.719 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.0131, allocations: 0 / 284 MB, free: 6.719 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.0131, allocations: 0 / 284 MB, free: 6.719 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.01311, allocations: 0 / 284 MB, free: 6.719 MB / 266.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.001468/0.01458, allocations: 1.116 MB / 285.1 MB, free: 5.562 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.01461, allocations: 8.031 kB / 285.1 MB, free: 5.555 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.01477, allocations: 112.8 kB / 285.2 MB, free: 5.445 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004946/0.01527, allocations: 353.5 kB / 285.6 MB, free: 5.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.0154, allocations: 156.7 kB / 285.7 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.402e-05/0.01548, allocations: 64.38 kB / 285.8 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009381/0.01642, allocations: 1.39 MB / 287.2 MB, free: 3.145 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.01644, allocations: 4.141 kB / 287.2 MB, free: 3.141 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.925e-05/0.01649, allocations: 32.12 kB / 287.2 MB, free: 3.109 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.0165, allocations: 12 kB / 287.2 MB, free: 3.098 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002988/0.0168, allocations: 170.8 kB / 287.4 MB, free: 2.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/0.01872, allocations: 1.236 MB / 288.6 MB, free: 1.637 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004054/0.01913, allocations: 249.8 kB / 288.9 MB, free: 1.379 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.01927, allocations: 98.31 kB / 289 MB, free: 1.281 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.829e-05/0.0193, allocations: 16.48 kB / 289 MB, free: 1.266 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.01955, allocations: 198.2 kB / 289.2 MB, free: 1.055 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.934e-06/0.01956, allocations: 0 / 289.2 MB, free: 1.055 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002043/0.0216, allocations: 0.7996 MB / 290 MB, free: 252 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1133/0.1349, allocations: 0.8178 MB / 290.8 MB, free: 25.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004741/0.1354, allocations: 477.9 kB / 291.2 MB, free: 25.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001235/0.1355, allocations: 42.58 kB / 291.3 MB, free: 25.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.1356, allocations: 268.7 kB / 291.5 MB, free: 25.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.1358, allocations: 203.2 kB / 291.7 MB, free: 25.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/0.1359, allocations: 131 kB / 291.9 MB, free: 25.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.842e-05/0.136, allocations: 386.4 kB / 292.3 MB, free: 24.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.1362, allocations: 117.8 kB / 292.4 MB, free: 24.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003277/0.1365, allocations: 1.157 MB / 293.5 MB, free: 23.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.1368, allocations: 331.2 kB / 293.8 MB, free: 23.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1368, allocations: 0 / 293.8 MB, free: 23.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00077/0.1376, allocations: 0.5474 MB / 294.4 MB, free: 23.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/0.1376, allocations: 64.17 kB / 294.5 MB, free: 23.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.1376, allocations: 3.438 kB / 294.5 MB, free: 23.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003088/0.1379, allocations: 143.8 kB / 294.6 MB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/0.1382, allocations: 111.9 kB / 294.7 MB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002313/0.1405, allocations: 3.285 MB / 298 MB, free: 20.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003085/0.1408, allocations: 70.91 kB / 298.1 MB, free: 20.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.1409, allocations: 17.89 kB / 298.1 MB, free: 20.66 MB / 266.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.0001346/0.141, allocations: 164 kB / 298.2 MB, free: 20.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.576e-05/0.1411, allocations: 74.41 kB / 298.3 MB, free: 20.55 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.825e-05/0.1412, allocations: 75.77 kB / 298.4 MB, free: 20.53 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.1412, allocations: 6.859 kB / 298.4 MB, free: 20.53 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1412, allocations: 0 / 298.4 MB, free: 20.53 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005737/0.1417, allocations: 0.7218 MB / 299.1 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009615/0.1427, allocations: 0.8211 MB / 299.9 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.1427, allocations: 3.969 kB / 299.9 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002492/0.143, allocations: 96.11 kB / 300 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000207/0.1432, allocations: 106.9 kB / 300.1 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.1432, allocations: 14.75 kB / 300.2 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/0.1447, allocations: 2.947 MB / 303.1 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1447, allocations: 2.25 kB / 303.1 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000592/0.1453, allocations: 0.5121 MB / 303.6 MB, free: 17.1 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000143/0.1454, allocations: 87.27 kB / 303.7 MB, free: 17.06 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.413e-05/0.1455, allocations: 13.5 kB / 303.7 MB, free: 17.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.1457, allocations: 37.34 kB / 303.8 MB, free: 17.06 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.1458, allocations: 61 kB / 303.8 MB, free: 17.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.1458, allocations: 10.94 kB / 303.8 MB, free: 17.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001895/0.146, allocations: 220.8 kB / 304 MB, free: 17.04 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.146, allocations: 0.5625 kB / 304 MB, free: 17.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005389/0.1466, allocations: 260 kB / 304.3 MB, free: 17.02 MB / 266.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.0001138/0.1467, allocations: 99.64 kB / 304.4 MB, free: 16.95 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007102/0.1474, allocations: 0.8042 MB / 305.2 MB, free: 16.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.218e-05/0.1474, allocations: 7.469 kB / 305.2 MB, free: 16.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002945/0.1477, allocations: 429.4 kB / 305.6 MB, free: 16.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004744/0.1482, allocations: 215.6 kB / 305.8 MB, free: 16.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001987/0.1502, allocations: 1.241 MB / 307.1 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.1503, allocations: 149.6 kB / 307.2 MB, free: 15.54 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003472/0.1507, allocations: 81.52 kB / 307.3 MB, free: 15.52 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006952/0.1513, allocations: 334 kB / 307.6 MB, free: 15.46 MB / 266.7 MB Notification: Performance of SimCode: time 1.262e-06/0.1513, allocations: 1.375 kB / 307.6 MB, free: 15.46 MB / 266.7 MB Notification: Performance of Templates: time 0.01709/0.1684, allocations: 17.81 MB / 325.4 MB, free: 428 kB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.192137093283236]