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.000803/0.0008031, allocations: 93.09 kB / 16.65 MB, free: 6.535 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.0008859/0.000886, allocations: 174.3 kB / 17.56 MB, free: 6.184 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.238/1.238, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002199/0.0002199, allocations: 9.344 kB / 301.5 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08161/0.08185, allocations: 50.41 MB / 351.9 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004168/0.08605, allocations: 4.454 MB / 356.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.08811, allocations: 1.336 MB / 357.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003477/0.08848, allocations: 11.94 kB / 357.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003414/0.08883, allocations: 119.2 kB / 357.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007215/0.08957, allocations: 309.8 kB / 358.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004124/0.08999, allocations: 187.8 kB / 358.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009647/0.09096, allocations: 0.9686 MB / 359.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003947/0.09137, allocations: 269.9 kB / 359.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004888/0.09187, allocations: 362.6 kB / 359.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005174/0.09239, allocations: 414.1 kB / 360.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001292/0.09253, allocations: 60 kB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001467/0.09268, allocations: 56 kB / 360.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001346/0.09283, allocations: 171.3 kB / 360.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004321/0.09327, allocations: 467.5 kB / 361.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008164/0.09409, allocations: 1.008 MB / 362.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.0941, allocations: 0 / 362.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.09411, allocations: 0 / 362.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.09414, allocations: 0 / 362.1 MB, free: 9.41 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.001953/0.0961, allocations: 1.077 MB / 363.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.09614, allocations: 8.031 kB / 363.2 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001849/0.09633, allocations: 115.8 kB / 363.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.09653, allocations: 99.81 kB / 363.4 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006821/0.09722, allocations: 0.5084 MB / 363.9 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.09738, allocations: 117.2 kB / 364 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.14e-05/0.09748, allocations: 52.38 kB / 364 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.09881, allocations: 0.8244 MB / 364.9 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.09884, allocations: 0 / 364.9 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.948e-05/0.0989, allocations: 28 kB / 364.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.09892, allocations: 15.98 kB / 364.9 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.1001, allocations: 0.5399 MB / 365.5 MB, free: 5.801 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.003086/0.1032, allocations: 2.183 MB / 367.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.1045, allocations: 0.5778 MB / 368.2 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005724/0.1051, allocations: 274.4 kB / 368.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.777e-05/0.1051, allocations: 20.61 kB / 368.5 MB, free: 2.594 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007194/0.1059, allocations: 338.9 kB / 368.8 MB, free: 2.254 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 3.557e-06/0.1059, allocations: 0 / 368.8 MB, free: 2.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004881/0.1108, allocations: 1.606 MB / 370.4 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1355/0.2463, allocations: 0.8207 MB / 371.3 MB, free: 24.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.2474, allocations: 0.5839 MB / 371.8 MB, free: 24.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001414/0.2476, allocations: 41.27 kB / 371.9 MB, free: 24.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002828/0.2479, allocations: 345.6 kB / 372.2 MB, free: 23.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002197/0.2481, allocations: 189.8 kB / 372.4 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.178e-05/0.2482, allocations: 55.98 kB / 372.5 MB, free: 23.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.2483, allocations: 377.6 kB / 372.8 MB, free: 23.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006628/0.249, allocations: 227.9 kB / 373.1 MB, free: 23.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000799/0.2498, allocations: 0.5373 MB / 373.6 MB, free: 23.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.251, allocations: 0.5971 MB / 374.2 MB, free: 23.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.251, allocations: 1.656 kB / 374.2 MB, free: 23.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00231/0.2533, allocations: 0.9456 MB / 375.1 MB, free: 22.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.2534, allocations: 66.02 kB / 375.2 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.2534, allocations: 5.188 kB / 375.2 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006851/0.2541, allocations: 233.2 kB / 375.4 MB, free: 22.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/0.2547, allocations: 120.4 kB / 375.5 MB, free: 22.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00507/0.2598, allocations: 4.255 MB / 379.8 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000715/0.2605, allocations: 103.3 kB / 379.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-05/0.2605, allocations: 21.72 kB / 379.9 MB, free: 19.62 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.0002462/0.2608, allocations: 208.8 kB / 380.1 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.092e-05/0.2609, allocations: 81.55 kB / 380.2 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001186/0.261, allocations: 81.14 kB / 380.3 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.261, allocations: 5.844 kB / 380.3 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.261, allocations: 0.6562 kB / 380.3 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001885/0.2629, allocations: 1.107 MB / 381.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002363/0.2653, allocations: 1.586 MB / 383 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2653, allocations: 0 / 383 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005688/0.2659, allocations: 112.2 kB / 383.1 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004927/0.2664, allocations: 178.8 kB / 383.3 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.018e-05/0.2664, allocations: 13.59 kB / 383.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003752/0.2702, allocations: 3.674 MB / 387 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2702, allocations: 0 / 387 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002153/0.2724, allocations: 1.073 MB / 388 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002408/0.2726, allocations: 218.3 kB / 388.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.35e-05/0.2727, allocations: 23.52 kB / 388.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006072/0.2733, allocations: 49.73 kB / 388.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.2735, allocations: 49.94 kB / 388.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.2735, allocations: 18.11 kB / 388.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004605/0.274, allocations: 421.8 kB / 388.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.274, allocations: 0 / 388.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007532/0.2748, allocations: 257.6 kB / 389 MB, free: 13.68 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.002361/0.2771, allocations: 1.64 MB / 390.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001821/0.279, allocations: 1.046 MB / 391.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.279, allocations: 6.156 kB / 391.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008265/0.2798, allocations: 0.5525 MB / 392.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008496/0.2807, allocations: 201.1 kB / 392.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008727/0.2894, allocations: 6.797 MB / 399.3 MB, free: 7.586 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.2897, allocations: 0.9186 MB / 400.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003699/0.2901, allocations: 88.38 kB / 400.3 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002424/0.2903, allocations: 258.6 kB / 400.5 MB, free: 6.531 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2903, allocations: 0 / 400.5 MB, free: 6.531 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0356/0.3259, allocations: 20.99 MB / 421.5 MB, free: 2.051 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002332/0.3262, allocations: 239.7 kB / 421.8 MB, free: 1.789 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.294/2.62, allocations: 0 / 421.8 MB, free: 1.789 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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