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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 109.7 kB / 17.06 MB, free: 5.996 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.001591/0.001591, allocations: 194.9 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2523, allocations: 49.43 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006043/0.2584, allocations: 4.834 MB / 405.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002458/0.2609, allocations: 1.347 MB / 406.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004897/0.2614, allocations: 11.94 kB / 406.4 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004554/0.2618, allocations: 154.7 kB / 406.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008571/0.2627, allocations: 349.4 kB / 406.9 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005119/0.2633, allocations: 211.6 kB / 407.1 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00115/0.2644, allocations: 1.023 MB / 408.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004135/0.2649, allocations: 297.9 kB / 408.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005643/0.2654, allocations: 406.5 kB / 408.8 MB, free: 152 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006371/0.2661, allocations: 450.1 kB / 409.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000192/0.2663, allocations: 88 kB / 409.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001935/0.2665, allocations: 92 kB / 409.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.2667, allocations: 203.3 kB / 409.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004757/0.2672, allocations: 477.8 kB / 410.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.2683, allocations: 1.073 MB / 411.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2683, allocations: 0 / 411.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2683, allocations: 0 / 411.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.2683, allocations: 0 / 411.2 MB, free: 13.79 MB / 334.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.002169/0.2705, allocations: 1.243 MB / 412.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.2705, allocations: 12.03 kB / 412.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001604/0.2707, allocations: 108 kB / 412.5 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001591/0.2709, allocations: 108.3 kB / 412.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007705/0.2716, allocations: 0.5245 MB / 413.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.2718, allocations: 101.3 kB / 413.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.2719, allocations: 56.38 kB / 413.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.2732, allocations: 0.8088 MB / 414.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.2733, allocations: 4 kB / 414.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.307e-05/0.2734, allocations: 28 kB / 414.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.2734, allocations: 12 kB / 414.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.2746, allocations: 0.5086 MB / 414.7 MB, free: 10.05 MB / 334.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.003166/0.2777, allocations: 2.179 MB / 416.9 MB, free: 7.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.279, allocations: 0.5337 MB / 417.4 MB, free: 7.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005825/0.2796, allocations: 258.4 kB / 417.7 MB, free: 6.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.764e-05/0.2797, allocations: 17.64 kB / 417.7 MB, free: 6.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007224/0.2804, allocations: 330.9 kB / 418 MB, free: 6.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.375e-06/0.2804, allocations: 0 / 418 MB, free: 6.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004894/0.2853, allocations: 1.49 MB / 419.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003647/0.2857, allocations: 0.8272 MB / 420.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006942/0.2864, allocations: 0.594 MB / 420.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.902e-05/0.2865, allocations: 41.7 kB / 420.9 MB, free: 3.367 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.2868, allocations: 341.2 kB / 421.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.2869, allocations: 198.3 kB / 421.5 MB, free: 2.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002062/0.2871, allocations: 134.2 kB / 421.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.2873, allocations: 382.8 kB / 422 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000593/0.2879, allocations: 205 kB / 422.2 MB, free: 2.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008413/0.2887, allocations: 0.5208 MB / 422.7 MB, free: 1.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.2899, allocations: 0.5614 MB / 423.3 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.29, allocations: 0 / 423.3 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002309/0.2923, allocations: 0.9017 MB / 424.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.49e-05/0.2923, allocations: 67.39 kB / 424.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.2924, allocations: 8 kB / 424.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007088/0.2931, allocations: 225.5 kB / 424.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006321/0.2937, allocations: 119.8 kB / 424.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006438/0.3002, allocations: 4.579 MB / 429.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008051/0.301, allocations: 87.58 kB / 429.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.362e-05/0.3011, allocations: 23.98 kB / 429.3 MB, free: 10.55 MB / 350.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.0003642/0.3014, allocations: 217 kB / 429.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.3016, allocations: 91.45 kB / 429.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001533/0.3017, allocations: 78.84 kB / 429.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.3018, allocations: 4 kB / 429.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.3018, allocations: 0 / 429.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002135/0.3039, allocations: 1.046 MB / 430.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002655/0.3066, allocations: 1.544 MB / 432.2 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.3066, allocations: 4 kB / 432.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006162/0.3072, allocations: 107.9 kB / 432.3 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005489/0.3078, allocations: 173.7 kB / 432.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.332e-05/0.3078, allocations: 12 kB / 432.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004873/0.3127, allocations: 3.94 MB / 436.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3127, allocations: 0 / 436.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.3151, allocations: 1.032 MB / 437.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003603/0.3155, allocations: 220.4 kB / 437.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.3157, allocations: 16.11 kB / 437.7 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006413/0.3163, allocations: 47.89 kB / 437.8 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.3165, allocations: 52.48 kB / 437.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.435e-05/0.3165, allocations: 16 kB / 437.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005031/0.317, allocations: 419.1 kB / 438.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.317, allocations: 0 / 438.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008192/0.3178, allocations: 255.7 kB / 438.5 MB, free: 0.7812 MB / 350.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.002632/0.3205, allocations: 1.602 MB / 440.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002087/0.3226, allocations: 1.019 MB / 441.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/0.3226, allocations: 4 kB / 441.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009919/0.3236, allocations: 0.5555 MB / 441.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.3246, allocations: 207.1 kB / 441.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.3356, allocations: 6.137 MB / 448 MB, free: 6.992 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.3361, allocations: 0.916 MB / 448.9 MB, free: 6.047 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004081/0.3365, allocations: 85.22 kB / 449 MB, free: 5.961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003354/0.3369, allocations: 259.3 kB / 449.3 MB, free: 5.707 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3369, allocations: 0 / 449.3 MB, free: 5.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05291/0.3898, allocations: 22.76 MB / 472 MB, free: 15.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.01, allocations: 14.81 kB / 472.1 MB, free: 15.33 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches