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.001321/0.001321, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001411/0.001411, allocations: 205.4 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 51.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2945, allocations: 53.36 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00625/0.3007, allocations: 4.376 MB / 435.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00261/0.3033, allocations: 1.316 MB / 436.8 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002875/0.3036, allocations: 11.94 kB / 436.8 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004078/0.304, allocations: 158.7 kB / 436.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006939/0.3047, allocations: 337.4 kB / 437.3 MB, free: 444 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004578/0.3052, allocations: 219.6 kB / 437.5 MB, free: 224 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001131/0.3063, allocations: 1.027 MB / 438.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003581/0.3067, allocations: 210.4 kB / 438.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005849/0.3073, allocations: 426.5 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005436/0.3078, allocations: 446.2 kB / 439.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000134/0.3079, allocations: 92 kB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001675/0.3081, allocations: 91.94 kB / 439.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001776/0.3083, allocations: 195.3 kB / 439.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004044/0.3087, allocations: 402.3 kB / 440.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.3099, allocations: 1.089 MB / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.3099, allocations: 0 / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3099, allocations: 0 / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.3099, allocations: 0 / 441.4 MB, free: 12.25 MB / 350.1 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.002258/0.3121, allocations: 1.168 MB / 442.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.3122, allocations: 16.02 kB / 442.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001598/0.3123, allocations: 100 kB / 442.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.3125, allocations: 108.3 kB / 442.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008996/0.3134, allocations: 467.3 kB / 443.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001967/0.3136, allocations: 156.7 kB / 443.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.3137, allocations: 52.38 kB / 443.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/0.3155, allocations: 1.57 MB / 445 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.3156, allocations: 0 / 445 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.231e-05/0.3156, allocations: 24 kB / 445.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.3156, allocations: 12 kB / 445.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.3168, allocations: 0.5048 MB / 445.6 MB, free: 7.699 MB / 350.1 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.003391/0.3202, allocations: 1.769 MB / 447.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.3215, allocations: 0.4923 MB / 447.8 MB, free: 5.336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005822/0.3221, allocations: 234.2 kB / 448.1 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.335e-05/0.3221, allocations: 12.48 kB / 448.1 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007516/0.3229, allocations: 326 kB / 448.4 MB, free: 4.762 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.705e-06/0.3229, allocations: 0 / 448.4 MB, free: 4.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004933/0.3278, allocations: 1.321 MB / 449.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004658/0.3283, allocations: 0.8271 MB / 450.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007898/0.3291, allocations: 0.5901 MB / 451.1 MB, free: 1.805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.3292, allocations: 45.7 kB / 451.2 MB, free: 1.754 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000346/0.3295, allocations: 350.2 kB / 451.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002434/0.3298, allocations: 190.3 kB / 451.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002512/0.33, allocations: 142.2 kB / 451.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002336/0.3302, allocations: 378.8 kB / 452.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006159/0.3309, allocations: 264.6 kB / 452.5 MB, free: 436 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/0.3322, allocations: 1.333 MB / 453.8 MB, free: 14.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.3334, allocations: 0.5641 MB / 454.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.3334, allocations: 4 kB / 454.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002355/0.3357, allocations: 0.9465 MB / 455.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.724e-05/0.3358, allocations: 63.39 kB / 455.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.3358, allocations: 4 kB / 455.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007175/0.3365, allocations: 221.5 kB / 455.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006163/0.3372, allocations: 119.8 kB / 455.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006992/0.3441, allocations: 4.331 MB / 460.1 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008312/0.345, allocations: 87.56 kB / 460.1 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.535e-05/0.345, allocations: 20 kB / 460.2 MB, free: 8.094 MB / 366.1 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.0003723/0.3454, allocations: 221.3 kB / 460.4 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001222/0.3455, allocations: 83.47 kB / 460.5 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.3457, allocations: 82.84 kB / 460.5 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3457, allocations: 4 kB / 460.5 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3457, allocations: 4 kB / 460.5 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002122/0.3478, allocations: 1.041 MB / 461.6 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002763/0.3506, allocations: 1.393 MB / 463 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3506, allocations: 4 kB / 463 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006237/0.3512, allocations: 111.8 kB / 463.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005411/0.3517, allocations: 161.6 kB / 463.2 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.167e-05/0.3518, allocations: 19.98 kB / 463.3 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005111/0.3569, allocations: 3.691 MB / 467 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3569, allocations: 7.938 kB / 467 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002454/0.3594, allocations: 1.022 MB / 468 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003793/0.3597, allocations: 139.3 kB / 468.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.3598, allocations: 16 kB / 468.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005923/0.3604, allocations: 43.95 kB / 468.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.3606, allocations: 64.39 kB / 468.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.438e-05/0.3606, allocations: 12 kB / 468.3 MB, free: 15.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005413/0.3612, allocations: 415.1 kB / 468.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3612, allocations: 0 / 468.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008125/0.362, allocations: 259.8 kB / 468.9 MB, free: 14.89 MB / 382.1 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.002732/0.3647, allocations: 1.597 MB / 470.5 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002189/0.3669, allocations: 1.037 MB / 471.6 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/0.3669, allocations: 4 kB / 471.6 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009943/0.3679, allocations: 0.5233 MB / 472.1 MB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009751/0.3689, allocations: 207.4 kB / 472.3 MB, free: 11.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/0.3797, allocations: 6.348 MB / 478.6 MB, free: 4.848 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000387/0.3801, allocations: 320.2 kB / 478.9 MB, free: 4.512 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004366/0.3805, allocations: 85.22 kB / 479 MB, free: 4.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003629/0.3809, allocations: 259.3 kB / 479.3 MB, free: 4.172 MB / 382.1 MB Notification: Performance of SimCode: time 1.382e-06/0.3809, allocations: 0 / 479.3 MB, free: 4.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06739/0.4483, allocations: 25.08 MB / 0.4925 GB, free: 11.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/13.74, allocations: 4 kB / 0.4925 GB, free: 11.57 MB / 414.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable speed.phi in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv. Warning: Get data of variable speed.phi from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.310479137988295]