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.001571/0.001571, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001704/0.001704, allocations: 189.4 kB / 18 MB, free: 5.09 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.39/1.39, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 43.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2609, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00633/0.2672, allocations: 4.828 MB / 405.1 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002834/0.2701, allocations: 1.359 MB / 406.4 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003617/0.2705, allocations: 8 kB / 406.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004325/0.2709, allocations: 146.7 kB / 406.6 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007239/0.2717, allocations: 345.3 kB / 406.9 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.2722, allocations: 211.6 kB / 407.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001084/0.2733, allocations: 1.031 MB / 408.1 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004339/0.2737, allocations: 285.9 kB / 408.4 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004889/0.2742, allocations: 410.5 kB / 408.8 MB, free: 176 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005543/0.2748, allocations: 446.2 kB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001465/0.2749, allocations: 88 kB / 409.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001672/0.2751, allocations: 92 kB / 409.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.2753, allocations: 199.3 kB / 409.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004831/0.2758, allocations: 473.8 kB / 410.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.2769, allocations: 1.077 MB / 411.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.277, allocations: 0 / 411.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.277, allocations: 0 / 411.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.277, allocations: 0 / 411.2 MB, free: 13.82 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.002264/0.2793, allocations: 1.251 MB / 412.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.2793, allocations: 12.03 kB / 412.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001618/0.2795, allocations: 111.9 kB / 412.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.2797, allocations: 112.3 kB / 412.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007998/0.2805, allocations: 0.5167 MB / 413.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.2806, allocations: 117.2 kB / 413.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.813e-05/0.2807, allocations: 48.38 kB / 413.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.2822, allocations: 0.8088 MB / 414.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.2822, allocations: 4 kB / 414.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.394e-05/0.2823, allocations: 24 kB / 414.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/0.2823, allocations: 16 kB / 414.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.2836, allocations: 0.5047 MB / 414.7 MB, free: 10.07 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.003529/0.2871, allocations: 2.179 MB / 416.9 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.2885, allocations: 0.5375 MB / 417.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006284/0.2892, allocations: 254.4 kB / 417.7 MB, free: 6.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.32e-05/0.2892, allocations: 17.62 kB / 417.7 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007846/0.29, allocations: 323 kB / 418 MB, free: 6.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.264e-06/0.29, allocations: 3.938 kB / 418 MB, free: 6.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005196/0.2952, allocations: 1.49 MB / 419.5 MB, free: 5.066 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004763/0.2957, allocations: 0.8272 MB / 420.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007678/0.2965, allocations: 0.594 MB / 420.9 MB, free: 3.438 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.703e-05/0.2966, allocations: 41.7 kB / 420.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000309/0.2969, allocations: 341.2 kB / 421.3 MB, free: 3.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.2971, allocations: 202.3 kB / 421.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002344/0.2973, allocations: 134.2 kB / 421.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.2976, allocations: 378.7 kB / 422 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005953/0.2982, allocations: 213 kB / 422.2 MB, free: 2.129 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009/0.2991, allocations: 0.5169 MB / 422.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.3004, allocations: 0.5692 MB / 423.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3004, allocations: 0 / 423.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002486/0.3029, allocations: 0.8979 MB / 424.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.276e-05/0.3029, allocations: 59.39 kB / 424.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.303, allocations: 4 kB / 424.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008046/0.3038, allocations: 221.5 kB / 424.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006435/0.3044, allocations: 115.8 kB / 424.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007312/0.3117, allocations: 4.6 MB / 429.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008277/0.3126, allocations: 91.56 kB / 429.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.093e-05/0.3127, allocations: 24 kB / 429.3 MB, free: 10.56 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.0003702/0.313, allocations: 201.9 kB / 429.5 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.3132, allocations: 87.47 kB / 429.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00021/0.3134, allocations: 79.03 kB / 429.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.3134, allocations: 8 kB / 429.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.3134, allocations: 7.938 kB / 429.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002217/0.3156, allocations: 1.046 MB / 430.7 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002835/0.3185, allocations: 1.54 MB / 432.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3185, allocations: 4 kB / 432.2 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006107/0.3191, allocations: 103.9 kB / 432.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005693/0.3197, allocations: 177.5 kB / 432.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.6e-05/0.3197, allocations: 12 kB / 432.5 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005364/0.3251, allocations: 3.932 MB / 436.5 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3251, allocations: 0 / 436.5 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002549/0.3277, allocations: 1.024 MB / 437.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003416/0.328, allocations: 220.6 kB / 437.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.749e-05/0.3282, allocations: 15.94 kB / 437.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006047/0.3288, allocations: 48.02 kB / 437.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.3289, allocations: 56.42 kB / 437.8 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.663e-05/0.329, allocations: 16 kB / 437.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005754/0.3296, allocations: 419.1 kB / 438.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3296, allocations: 0 / 438.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008342/0.3304, allocations: 259.7 kB / 438.5 MB, free: 0.8086 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.002824/0.3332, allocations: 1.6 MB / 440.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002183/0.3354, allocations: 1.015 MB / 441.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.3355, allocations: 4.5 kB / 441.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.3365, allocations: 0.555 MB / 441.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008641/0.3374, allocations: 211.3 kB / 441.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.3481, allocations: 6.141 MB / 448 MB, free: 7.016 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005727/0.3487, allocations: 0.916 MB / 448.9 MB, free: 6.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003895/0.3491, allocations: 85.22 kB / 449 MB, free: 5.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003721/0.3494, allocations: 259.3 kB / 449.3 MB, free: 5.73 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3495, allocations: 0 / 449.3 MB, free: 5.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06226/0.4117, allocations: 22.76 MB / 472 MB, free: 15.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.37, allocations: 10.81 kB / 472 MB, free: 15.36 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