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.0008444/0.0008444, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.0007973/0.0007973, allocations: 153 kB / 23.93 MB, free: 0.6289 MB / 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 0.8752/0.8752, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.492e-06/1.492e-06, allocations: 3.938 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.816e-05/1.966e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.003971/0.003991, allocations: 4.354 MB / 322.8 MB, free: 1.973 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00187/0.005861, allocations: 1.304 MB / 324.1 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002784/0.00614, allocations: 19.81 kB / 324.1 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003077/0.006447, allocations: 150.7 kB / 324.2 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005204/0.006968, allocations: 369.1 kB / 324.6 MB, free: 132 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.007332, allocations: 207.6 kB / 324.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007906/0.008122, allocations: 1.069 MB / 325.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002646/0.008387, allocations: 198.4 kB / 326.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008492/0.009236, allocations: 0.6003 MB / 326.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003338/0.00957, allocations: 331.1 kB / 327 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.657e-05/0.009666, allocations: 88 kB / 327.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.804e-05/0.009754, allocations: 92 kB / 327.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.881e-05/0.009853, allocations: 203.3 kB / 327.4 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002385/0.01009, allocations: 335.3 kB / 327.7 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007525/0.01084, allocations: 1.121 MB / 328.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.01085, allocations: 0 / 328.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.01085, allocations: 0 / 328.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.171e-05/0.01087, allocations: 0 / 328.8 MB, free: 11.89 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.001482/0.01235, allocations: 1.163 MB / 330 MB, free: 10.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.01239, allocations: 8.922 kB / 330 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001344/0.01253, allocations: 115.9 kB / 330.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.01266, allocations: 100.4 kB / 330.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005868/0.01324, allocations: 466.6 kB / 330.7 MB, free: 9.973 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.01336, allocations: 152.7 kB / 330.8 MB, free: 9.801 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.627e-05/0.01342, allocations: 56.31 kB / 330.9 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.01448, allocations: 1.566 MB / 332.4 MB, free: 7.891 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.0145, allocations: 8.125 kB / 332.4 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.2e-05/0.01454, allocations: 31.94 kB / 332.5 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.01455, allocations: 12 kB / 332.5 MB, free: 7.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007219/0.01527, allocations: 0.5009 MB / 333 MB, free: 7.34 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.002311/0.01759, allocations: 1.778 MB / 334.8 MB, free: 5.473 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007364/0.01832, allocations: 494.1 kB / 335.2 MB, free: 4.977 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003281/0.01865, allocations: 238.2 kB / 335.5 MB, free: 4.734 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.01868, allocations: 4.5 kB / 335.5 MB, free: 4.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000438/0.01912, allocations: 322.2 kB / 335.8 MB, free: 4.406 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 2.785e-06/0.01912, allocations: 0 / 335.8 MB, free: 4.406 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.00264/0.02176, allocations: 1.329 MB / 337.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002282/0.02199, allocations: 0.8193 MB / 337.9 MB, free: 2.047 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004767/0.02247, allocations: 0.5979 MB / 338.5 MB, free: 1.441 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.02251, allocations: 49.64 kB / 338.6 MB, free: 1.387 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.02269, allocations: 342.2 kB / 338.9 MB, free: 1.051 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.0228, allocations: 190.3 kB / 339.1 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.02293, allocations: 134.3 kB / 339.2 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.02304, allocations: 374.8 kB / 339.6 MB, free: 356 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/0.02339, allocations: 268.6 kB / 339.9 MB, free: 76 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009571/0.02435, allocations: 1.333 MB / 341.2 MB, free: 14.42 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000692/0.02504, allocations: 0.5641 MB / 341.8 MB, free: 13.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.02505, allocations: 0 / 341.8 MB, free: 13.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001274/0.02632, allocations: 0.9542 MB / 342.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.427e-05/0.02636, allocations: 59.41 kB / 342.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.02637, allocations: 0 / 342.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004307/0.0268, allocations: 225.5 kB / 343 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003127/0.02711, allocations: 119.8 kB / 343.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004148/0.03126, allocations: 4.338 MB / 347.4 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004419/0.0317, allocations: 83.58 kB / 347.5 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.342e-05/0.03174, allocations: 27.98 kB / 347.6 MB, free: 7.73 MB / 314.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.0002438/0.03198, allocations: 209.7 kB / 347.8 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.429e-05/0.03205, allocations: 79.53 kB / 347.8 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.096e-05/0.03214, allocations: 78.8 kB / 347.9 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.03214, allocations: 8 kB / 347.9 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.03214, allocations: 0 / 347.9 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001133/0.03328, allocations: 1.045 MB / 349 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001591/0.03487, allocations: 1.386 MB / 350.4 MB, free: 4.746 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.03487, allocations: 0 / 350.4 MB, free: 4.746 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003012/0.03517, allocations: 111.8 kB / 350.5 MB, free: 4.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003059/0.03548, allocations: 177.5 kB / 350.6 MB, free: 4.457 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/0.0355, allocations: 8 kB / 350.6 MB, free: 4.449 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003074/0.03857, allocations: 3.706 MB / 354.4 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.03857, allocations: 4.031 kB / 354.4 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.03993, allocations: 1.018 MB / 355.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002294/0.04016, allocations: 139.3 kB / 355.5 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.721e-05/0.04022, allocations: 20.19 kB / 355.5 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003009/0.04052, allocations: 43.95 kB / 355.6 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.04063, allocations: 60.33 kB / 355.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/0.04066, allocations: 20.17 kB / 355.7 MB, free: 15.19 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003577/0.04101, allocations: 423 kB / 356.1 MB, free: 14.78 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04101, allocations: 0 / 356.1 MB, free: 14.78 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005837/0.0416, allocations: 255.7 kB / 356.3 MB, free: 14.53 MB / 330.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.001524/0.04312, allocations: 1.586 MB / 357.9 MB, free: 12.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001269/0.04439, allocations: 1.033 MB / 358.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.0444, allocations: 4 kB / 358.9 MB, free: 11.81 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005285/0.04492, allocations: 0.5233 MB / 359.5 MB, free: 11.26 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006043/0.04553, allocations: 219.2 kB / 359.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006919/0.05245, allocations: 6.324 MB / 366 MB, free: 4.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.05268, allocations: 324.3 kB / 366.3 MB, free: 4.16 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002646/0.05294, allocations: 81.22 kB / 366.4 MB, free: 4.082 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.05318, allocations: 264.4 kB / 366.7 MB, free: 3.824 MB / 330.7 MB Notification: Performance of SimCode: time 1.323e-06/0.05318, allocations: 0 / 366.7 MB, free: 3.824 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03712/0.0903, allocations: 24.91 MB / 391.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.138/8.228, allocations: 7.219 kB / 391.6 MB, free: 11.35 MB / 362.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] 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: 9.909203664399683]