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.0008626/0.0008625, allocations: 103.2 kB / 16.5 MB, free: 6.652 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.0008755/0.0008755, allocations: 195.1 kB / 17.42 MB, free: 6.062 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.19/1.19, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 45.73 kB / 300.1 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07598/0.07724, allocations: 49.45 MB / 349.5 MB, free: 4.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005124/0.08239, allocations: 4.84 MB / 354.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00223/0.08465, allocations: 1.351 MB / 355.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004796/0.08514, allocations: 11.94 kB / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004841/0.08564, allocations: 123.2 kB / 355.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008477/0.08653, allocations: 309.9 kB / 356.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004809/0.08702, allocations: 187.7 kB / 356.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00107/0.0881, allocations: 0.9828 MB / 357.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003667/0.08847, allocations: 265.9 kB / 357.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005045/0.08899, allocations: 370.6 kB / 357.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005246/0.08952, allocations: 434.1 kB / 358.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001458/0.08968, allocations: 60 kB / 358.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.08986, allocations: 64 kB / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.09001, allocations: 175.3 kB / 358.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004538/0.09047, allocations: 453.8 kB / 359.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000908/0.09139, allocations: 1.032 MB / 360.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.0914, allocations: 0 / 360.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09141, allocations: 0 / 360.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.758e-05/0.09145, allocations: 4 kB / 360.1 MB, free: 9.883 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.00229/0.09375, allocations: 1.216 MB / 361.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.0938, allocations: 16.02 kB / 361.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001735/0.09398, allocations: 103.9 kB / 361.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001879/0.09418, allocations: 95.91 kB / 361.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007088/0.09489, allocations: 0.5123 MB / 362.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001384/0.09504, allocations: 101.3 kB / 362.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.61e-05/0.09514, allocations: 56.38 kB / 362.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.09643, allocations: 0.8165 MB / 363 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.09646, allocations: 0 / 363 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.022e-05/0.09652, allocations: 24 kB / 363 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.09655, allocations: 16 kB / 363.1 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001134/0.09768, allocations: 0.5126 MB / 363.6 MB, free: 6.188 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.003062/0.1008, allocations: 2.19 MB / 365.8 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.1019, allocations: 0.533 MB / 366.3 MB, free: 3.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005373/0.1025, allocations: 262.4 kB / 366.6 MB, free: 3.055 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.512e-05/0.1025, allocations: 9.641 kB / 366.6 MB, free: 3.043 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006954/0.1032, allocations: 323 kB / 366.9 MB, free: 2.719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.024e-06/0.1033, allocations: 4 kB / 366.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004514/0.1078, allocations: 1.489 MB / 368.4 MB, free: 1.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003373/0.1081, allocations: 0.8233 MB / 369.2 MB, free: 160 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.138/0.2462, allocations: 0.583 MB / 369.8 MB, free: 25.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.2463, allocations: 42.7 kB / 369.8 MB, free: 25.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/0.2465, allocations: 340.8 kB / 370.2 MB, free: 25.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.2467, allocations: 190.4 kB / 370.3 MB, free: 25.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001997/0.2469, allocations: 129.2 kB / 370.5 MB, free: 25.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.397e-05/0.247, allocations: 378.4 kB / 370.8 MB, free: 25.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000563/0.2475, allocations: 215.4 kB / 371 MB, free: 25.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007142/0.2483, allocations: 0.5187 MB / 371.6 MB, free: 25.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.2494, allocations: 0.569 MB / 372.1 MB, free: 24.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.2494, allocations: 3.781 kB / 372.1 MB, free: 24.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002046/0.2514, allocations: 0.8884 MB / 373 MB, free: 24.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.2515, allocations: 63.7 kB / 373.1 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.2515, allocations: 9.281 kB / 373.1 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006857/0.2522, allocations: 223.3 kB / 373.3 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005859/0.2528, allocations: 114.1 kB / 373.4 MB, free: 24.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00484/0.2576, allocations: 4.191 MB / 377.6 MB, free: 21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006465/0.2583, allocations: 86.33 kB / 377.7 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.197e-05/0.2583, allocations: 22.72 kB / 377.7 MB, free: 20.95 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.0002511/0.2586, allocations: 216.9 kB / 377.9 MB, free: 20.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.433e-05/0.2587, allocations: 81.45 kB / 378 MB, free: 20.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.2588, allocations: 76.72 kB / 378.1 MB, free: 20.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.2588, allocations: 9.203 kB / 378.1 MB, free: 20.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2588, allocations: 7.812 kB / 378.1 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001745/0.2606, allocations: 1.051 MB / 379.2 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.2628, allocations: 1.543 MB / 380.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.2629, allocations: 7.938 kB / 380.7 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005503/0.2634, allocations: 103.6 kB / 380.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004833/0.2639, allocations: 171.7 kB / 381 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.259e-05/0.264, allocations: 12.89 kB / 381 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003572/0.2675, allocations: 3.59 MB / 384.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2675, allocations: 0 / 384.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002007/0.2696, allocations: 1.026 MB / 385.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002268/0.2698, allocations: 214.8 kB / 385.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.536e-05/0.2699, allocations: 23.89 kB / 385.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005337/0.2704, allocations: 41.09 kB / 385.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.2706, allocations: 50.64 kB / 385.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.208e-05/0.2706, allocations: 16.12 kB / 385.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004399/0.2711, allocations: 422.9 kB / 386.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2711, allocations: 0 / 386.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007497/0.2718, allocations: 253.7 kB / 386.6 MB, free: 15.05 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.002186/0.274, allocations: 1.6 MB / 388.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001742/0.2758, allocations: 1.01 MB / 389.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.2758, allocations: 2.156 kB / 389.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008108/0.2766, allocations: 0.5432 MB / 389.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000816/0.2774, allocations: 201.9 kB / 390 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009089/0.2865, allocations: 6.625 MB / 396.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003913/0.287, allocations: 0.9153 MB / 397.5 MB, free: 8.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005003/0.2875, allocations: 88.08 kB / 397.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002981/0.2878, allocations: 256.4 kB / 397.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2878, allocations: 0 / 397.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06348/0.3513, allocations: 21.22 MB / 419.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002174/0.3515, allocations: 232.9 kB / 419.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.36/2.712, allocations: 4 kB / 419.3 MB, free: 3.977 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