Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 113.4 kB / 17.72 MB, free: 5.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001858/0.001858, allocations: 184.1 kB / 18.65 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 51.94 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08338/0.0846, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.007005/0.09164, allocations: 4.834 MB / 379.5 MB, free: 248 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1642/0.2559, allocations: 1.401 MB / 380.9 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002973/0.2562, allocations: 9.688 kB / 380.9 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003882/0.2567, allocations: 154.5 kB / 381 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006311/0.2573, allocations: 345.8 kB / 381.4 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004409/0.2578, allocations: 220.2 kB / 381.6 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009646/0.2587, allocations: 1.025 MB / 382.6 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004118/0.2592, allocations: 300.2 kB / 382.9 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005154/0.2597, allocations: 413 kB / 383.3 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004402/0.2601, allocations: 450.2 kB / 383.7 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001199/0.2603, allocations: 88.12 kB / 383.8 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.2604, allocations: 89.19 kB / 383.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001635/0.2606, allocations: 192.7 kB / 384.1 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004105/0.261, allocations: 476.7 kB / 384.6 MB, free: 8.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001161/0.2622, allocations: 1.078 MB / 385.6 MB, free: 7.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.2622, allocations: 8.938 kB / 385.6 MB, free: 7.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.2622, allocations: 0 / 385.6 MB, free: 7.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.2622, allocations: 1.406 kB / 385.6 MB, free: 7.742 MB / 318.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.002008/0.2642, allocations: 1.239 MB / 386.9 MB, free: 6.863 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.2643, allocations: 10.03 kB / 386.9 MB, free: 6.863 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001529/0.2645, allocations: 115.3 kB / 387 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.2646, allocations: 101.6 kB / 387.1 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006983/0.2653, allocations: 0.5247 MB / 387.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.2655, allocations: 100.4 kB / 387.7 MB, free: 6.258 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.288e-05/0.2656, allocations: 56.89 kB / 387.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.2669, allocations: 0.809 MB / 388.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.2669, allocations: 0.5625 kB / 388.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.406e-05/0.267, allocations: 25.34 kB / 388.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.267, allocations: 12.78 kB / 388.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.2682, allocations: 0.5132 MB / 389.1 MB, free: 5.535 MB / 318.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.002902/0.2711, allocations: 2.175 MB / 391.3 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.2723, allocations: 0.525 MB / 391.8 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005602/0.2729, allocations: 262.3 kB / 392.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.632e-05/0.273, allocations: 13.59 kB / 392.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006885/0.2737, allocations: 330.5 kB / 392.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 1.974e-06/0.2737, allocations: 0 / 392.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004735/0.2784, allocations: 1.488 MB / 393.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001433/0.2786, allocations: 0.8272 MB / 394.8 MB, free: 2.113 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006736/0.2792, allocations: 0.5889 MB / 395.3 MB, free: 1.844 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.053e-05/0.2793, allocations: 44.73 kB / 395.4 MB, free: 1.801 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002087/0.2795, allocations: 343.8 kB / 395.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.2797, allocations: 198.6 kB / 395.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001976/0.2799, allocations: 131.1 kB / 396 MB, free: 1.309 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.28, allocations: 377.3 kB / 396.4 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005605/0.2806, allocations: 215.4 kB / 396.6 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007383/0.2813, allocations: 0.5147 MB / 397.1 MB, free: 476 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.2824, allocations: 0.5671 MB / 397.7 MB, free: 136 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.2824, allocations: 1.438 kB / 397.7 MB, free: 136 kB / 318.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00232/0.2848, allocations: 0.9077 MB / 398.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.515e-05/0.2848, allocations: 59.84 kB / 398.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.2848, allocations: 3.391 kB / 398.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007316/0.2856, allocations: 223.4 kB / 398.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006239/0.2862, allocations: 118.4 kB / 399 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006477/0.2927, allocations: 4.591 MB / 403.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009486/0.2937, allocations: 89.34 kB / 403.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-05/0.2938, allocations: 21.52 kB / 403.7 MB, free: 11.88 MB / 334.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.0003651/0.2941, allocations: 225.3 kB / 403.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.2943, allocations: 90.38 kB / 404 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001552/0.2944, allocations: 73.09 kB / 404.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.2945, allocations: 5.281 kB / 404.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.2945, allocations: 0.7031 kB / 404.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002088/0.2966, allocations: 1.048 MB / 405.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002912/0.2995, allocations: 1.548 MB / 406.7 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.2995, allocations: 1.125 kB / 406.7 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006222/0.3001, allocations: 109.2 kB / 406.8 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005702/0.3007, allocations: 172.6 kB / 407 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.144e-05/0.3008, allocations: 15.73 kB / 407 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00489/0.3057, allocations: 3.937 MB / 410.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3057, allocations: 0 / 410.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002397/0.3081, allocations: 1.032 MB / 412 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004016/0.3085, allocations: 218.1 kB / 412.2 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.3086, allocations: 21.77 kB / 412.2 MB, free: 5.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005985/0.3093, allocations: 46.58 kB / 412.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.3094, allocations: 47.5 kB / 412.3 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.409e-05/0.3094, allocations: 18.23 kB / 412.3 MB, free: 5.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005189/0.31, allocations: 418.3 kB / 412.7 MB, free: 4.891 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.31, allocations: 0 / 412.7 MB, free: 4.891 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008826/0.3109, allocations: 257.8 kB / 413 MB, free: 4.848 MB / 334.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.002547/0.3134, allocations: 1.602 MB / 414.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002043/0.3155, allocations: 1.019 MB / 415.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.3155, allocations: 2.969 kB / 415.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009158/0.3164, allocations: 0.5491 MB / 416.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009175/0.3173, allocations: 214.5 kB / 416.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.3275, allocations: 6.148 MB / 422.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/0.328, allocations: 0.92 MB / 423.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004064/0.3284, allocations: 81.22 kB / 423.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003264/0.3288, allocations: 263.3 kB / 423.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3288, allocations: 4 kB / 423.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05323/0.382, allocations: 22.75 MB / 446.5 MB, free: 5.168 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.15, allocations: 3.938 kB / 446.5 MB, free: 5.164 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches