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.001056/0.001056, allocations: 104.6 kB / 16.92 MB, free: 6.141 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.001003/0.001003, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.276/1.276, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 47.94 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1128, allocations: 49.43 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006084/0.1189, allocations: 4.833 MB / 355 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002511/0.1214, allocations: 1.355 MB / 356.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004715/0.1219, allocations: 15.94 kB / 356.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004817/0.1224, allocations: 154.7 kB / 356.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008923/0.1233, allocations: 337.4 kB / 356.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005456/0.1239, allocations: 207.6 kB / 357 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001169/0.1251, allocations: 1.028 MB / 358.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004321/0.1255, allocations: 293.9 kB / 358.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005969/0.1261, allocations: 394.6 kB / 358.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006257/0.1268, allocations: 450.1 kB / 359.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001776/0.127, allocations: 92 kB / 359.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002264/0.1272, allocations: 92 kB / 359.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.1274, allocations: 195.3 kB / 359.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005917/0.128, allocations: 481.8 kB / 360 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009627/0.129, allocations: 1.055 MB / 361.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.129, allocations: 3.984 kB / 361.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.129, allocations: 0 / 361.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.368e-05/0.129, allocations: 0 / 361.1 MB, free: 9.344 MB / 302.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.002393/0.1314, allocations: 1.232 MB / 362.3 MB, free: 8.043 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.1315, allocations: 8.031 kB / 362.3 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001826/0.1317, allocations: 111.9 kB / 362.4 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.1319, allocations: 95.91 kB / 362.5 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007394/0.1326, allocations: 0.5084 MB / 363 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.1328, allocations: 105.3 kB / 363.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.952e-05/0.1329, allocations: 52.38 kB / 363.2 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.1342, allocations: 0.8131 MB / 364 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.1343, allocations: 7.984 kB / 364 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-05/0.1343, allocations: 24 kB / 364 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.1343, allocations: 12 kB / 364 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.1356, allocations: 0.5048 MB / 364.5 MB, free: 5.645 MB / 302.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.003226/0.1388, allocations: 2.194 MB / 366.7 MB, free: 3.309 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/0.1401, allocations: 0.5302 MB / 367.3 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006068/0.1408, allocations: 258.4 kB / 367.5 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.354e-05/0.1408, allocations: 13.66 kB / 367.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008176/0.1416, allocations: 323 kB / 367.9 MB, free: 2.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.404e-06/0.1417, allocations: 0 / 367.9 MB, free: 2.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004918/0.1466, allocations: 1.493 MB / 369.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1698/0.3164, allocations: 0.8182 MB / 370.2 MB, free: 25.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009507/0.3173, allocations: 0.5865 MB / 370.7 MB, free: 25.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/0.3175, allocations: 43.95 kB / 370.8 MB, free: 25.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.3178, allocations: 344.1 kB / 371.1 MB, free: 25.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002401/0.318, allocations: 192.1 kB / 371.3 MB, free: 25.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002338/0.3183, allocations: 127.4 kB / 371.4 MB, free: 25.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3184, allocations: 375.5 kB / 371.8 MB, free: 24.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006424/0.3191, allocations: 213.5 kB / 372 MB, free: 24.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008033/0.3199, allocations: 0.5192 MB / 372.5 MB, free: 24.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.3211, allocations: 0.5686 MB / 373.1 MB, free: 24.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.3211, allocations: 0 / 373.1 MB, free: 24.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002368/0.3234, allocations: 0.9015 MB / 374 MB, free: 23.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.277e-05/0.3235, allocations: 63.73 kB / 374.1 MB, free: 23.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.3235, allocations: 2.906 kB / 374.1 MB, free: 23.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007369/0.3243, allocations: 220.8 kB / 374.3 MB, free: 23.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006367/0.3249, allocations: 117.3 kB / 374.4 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005957/0.3309, allocations: 4.592 MB / 379 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007976/0.3317, allocations: 89.05 kB / 379.1 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.025e-05/0.3318, allocations: 26.84 kB / 379.1 MB, free: 20 MB / 302.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.0003516/0.3321, allocations: 208.6 kB / 379.3 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.3323, allocations: 82.69 kB / 379.4 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001453/0.3325, allocations: 81.2 kB / 379.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.3325, allocations: 6.156 kB / 379.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3325, allocations: 0 / 379.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00191/0.3344, allocations: 1.054 MB / 380.5 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002892/0.3373, allocations: 1.545 MB / 382.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.3373, allocations: 2.188 kB / 382.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005967/0.3379, allocations: 108.1 kB / 382.2 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005166/0.3384, allocations: 166.2 kB / 382.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.135e-05/0.3385, allocations: 17.23 kB / 382.4 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004409/0.3429, allocations: 3.933 MB / 386.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3429, allocations: 1.406 kB / 386.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002443/0.3454, allocations: 1.017 MB / 387.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003469/0.3457, allocations: 219.4 kB / 387.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.3459, allocations: 18.94 kB / 387.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006253/0.3465, allocations: 46.48 kB / 387.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/0.3467, allocations: 57.14 kB / 387.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.614e-05/0.3467, allocations: 15.92 kB / 387.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006091/0.3474, allocations: 418.6 kB / 388.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3474, allocations: 0 / 388.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001008/0.3484, allocations: 254.7 kB / 388.3 MB, free: 13.79 MB / 302.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.002448/0.3508, allocations: 1.6 MB / 389.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002189/0.353, allocations: 1.033 MB / 391 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.3531, allocations: 2.844 kB / 391 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009164/0.354, allocations: 0.5563 MB / 391.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008936/0.3549, allocations: 211.4 kB / 391.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00967/0.3646, allocations: 6.389 MB / 398.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.3649, allocations: 0.9227 MB / 399 MB, free: 7.207 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003995/0.3653, allocations: 88.31 kB / 399.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002603/0.3656, allocations: 260.9 kB / 399.4 MB, free: 6.957 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3656, allocations: 0 / 399.4 MB, free: 6.957 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05127/0.4169, allocations: 22.45 MB / 421.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.79, allocations: 11.75 kB / 421.8 MB, free: 1.473 MB / 318.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