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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002266/0.002266, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001941/0.001941, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 173.3 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.338e-05/2.463e-05, allocations: 2.312 kB / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.007064/0.007088, allocations: 4.791 MB / 272.1 MB, free: 1.945 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.009552, allocations: 1.335 MB / 273.4 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002697/0.009821, allocations: 19.88 kB / 273.4 MB, free: 0.582 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004011/0.01022, allocations: 154.6 kB / 273.6 MB, free: 440 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007345/0.01096, allocations: 361.1 kB / 274 MB, free: 76 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004572/0.01141, allocations: 211.6 kB / 274.2 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001286/0.0127, allocations: 1.077 MB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003559/0.01306, allocations: 202.3 kB / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008242/0.01388, allocations: 0.6042 MB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000541/0.01442, allocations: 335 kB / 276.4 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001655/0.01459, allocations: 88 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001949/0.01478, allocations: 88 kB / 276.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002232/0.01501, allocations: 203.3 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004569/0.01546, allocations: 343.2 kB / 277.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0014/0.01686, allocations: 1.121 MB / 278.2 MB, free: 11.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.01687, allocations: 0 / 278.2 MB, free: 11.81 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01687, allocations: 0 / 278.2 MB, free: 11.81 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.01688, allocations: 0 / 278.2 MB, free: 11.81 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.002648/0.01953, allocations: 1.299 MB / 279.5 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.01957, allocations: 12.92 kB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000287/0.01985, allocations: 152.3 kB / 279.7 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008912/0.02074, allocations: 477.1 kB / 280.1 MB, free: 9.801 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/0.02094, allocations: 144.7 kB / 280.3 MB, free: 9.637 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.02107, allocations: 72.33 kB / 280.3 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/0.02311, allocations: 1.631 MB / 282 MB, free: 7.609 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/0.02313, allocations: 4.188 kB / 282 MB, free: 7.605 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.221e-05/0.0232, allocations: 28.12 kB / 282 MB, free: 7.578 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.02322, allocations: 12 kB / 282 MB, free: 7.566 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.02438, allocations: 475.7 kB / 282.5 MB, free: 7.098 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003822/0.0282, allocations: 1.943 MB / 284.4 MB, free: 5.078 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.02946, allocations: 491.5 kB / 284.9 MB, free: 4.578 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005496/0.03001, allocations: 225.1 kB / 285.1 MB, free: 4.355 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.446e-05/0.03007, allocations: 16.48 kB / 285.1 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007313/0.0308, allocations: 311.9 kB / 285.4 MB, free: 4.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.384e-06/0.0308, allocations: 0 / 285.4 MB, free: 4.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.005063/0.03587, allocations: 1.269 MB / 286.7 MB, free: 2.734 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005575/0.03643, allocations: 0.8271 MB / 287.5 MB, free: 1.711 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.03744, allocations: 0.7291 MB / 288.3 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.628e-05/0.03752, allocations: 41.7 kB / 288.3 MB, free: 0.918 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004121/0.03793, allocations: 435.8 kB / 288.7 MB, free: 496 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002205/0.03816, allocations: 198.3 kB / 288.9 MB, free: 296 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002646/0.03842, allocations: 144 kB / 289.1 MB, free: 144 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003887/0.03881, allocations: 0.586 MB / 289.6 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005706/0.03938, allocations: 252.6 kB / 289.9 MB, free: 15.29 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/0.0409, allocations: 1.435 MB / 291.3 MB, free: 13.48 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.04207, allocations: 0.5723 MB / 291.9 MB, free: 12.86 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.04207, allocations: 0 / 291.9 MB, free: 12.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002418/0.04449, allocations: 0.9481 MB / 292.8 MB, free: 11.87 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.748e-05/0.04456, allocations: 59.41 kB / 292.9 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.04457, allocations: 4 kB / 292.9 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007448/0.04531, allocations: 227.1 kB / 293.1 MB, free: 11.56 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006076/0.04592, allocations: 103.9 kB / 293.2 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007892/0.05381, allocations: 5.432 MB / 298.7 MB, free: 5.793 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00074/0.05455, allocations: 71.64 kB / 298.7 MB, free: 5.723 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.73e-05/0.05461, allocations: 24 kB / 298.8 MB, free: 5.699 MB / 282.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.0003954/0.05501, allocations: 256.4 kB / 299 MB, free: 5.438 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.05518, allocations: 99.53 kB / 299.1 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001788/0.05536, allocations: 74.56 kB / 299.2 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.05537, allocations: 8 kB / 299.2 MB, free: 5.25 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.05537, allocations: 4 kB / 299.2 MB, free: 5.246 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002203/0.05757, allocations: 1.008 MB / 300.2 MB, free: 4.129 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002886/0.06046, allocations: 1.477 MB / 301.7 MB, free: 2.586 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.06046, allocations: 4 kB / 301.7 MB, free: 2.582 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005753/0.06104, allocations: 99.88 kB / 301.8 MB, free: 2.484 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005621/0.0616, allocations: 159.2 kB / 301.9 MB, free: 2.32 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.715e-05/0.06164, allocations: 12 kB / 301.9 MB, free: 2.309 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1031/0.1647, allocations: 4.777 MB / 306.7 MB, free: 43.17 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1647, allocations: 0 / 306.7 MB, free: 43.17 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.1667, allocations: 1.046 MB / 307.8 MB, free: 42.96 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002855/0.167, allocations: 139.2 kB / 307.9 MB, free: 42.96 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.709e-05/0.1671, allocations: 22.36 kB / 307.9 MB, free: 42.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005605/0.1676, allocations: 31.55 kB / 308 MB, free: 42.96 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.1678, allocations: 57.75 kB / 308 MB, free: 42.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-05/0.1678, allocations: 15.45 kB / 308 MB, free: 42.96 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004788/0.1683, allocations: 475.8 kB / 308.5 MB, free: 42.82 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1683, allocations: 2.312 kB / 308.5 MB, free: 42.82 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007401/0.169, allocations: 255.8 kB / 308.7 MB, free: 42.81 MB / 282.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.0001363/0.1692, allocations: 119.9 kB / 308.9 MB, free: 42.73 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.1708, allocations: 1.162 MB / 310 MB, free: 42.14 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.1708, allocations: 5.875 kB / 310 MB, free: 42.14 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007995/0.1716, allocations: 0.659 MB / 310.7 MB, free: 41.78 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008353/0.1725, allocations: 228.9 kB / 310.9 MB, free: 41.76 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.1745, allocations: 1.271 MB / 312.2 MB, free: 41.12 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002855/0.1748, allocations: 318.2 kB / 312.5 MB, free: 41.02 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003147/0.1751, allocations: 80.61 kB / 312.6 MB, free: 41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.1753, allocations: 56.53 kB / 312.6 MB, free: 40.99 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.1753, allocations: 3.844 kB / 312.6 MB, free: 40.99 MB / 282.7 MB Notification: Performance of Templates: time 0.02186/0.1971, allocations: 16.92 MB / 329.5 MB, free: 29.65 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.260358761996031]