Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_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.001199/0.001199, allocations: 111.9 kB / 17.28 MB, free: 6.219 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.001302/0.001302, allocations: 193.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.1 MB / 224 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 43.94 kB / 280.2 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/0.09085, allocations: 46.62 MB / 326.9 MB, free: 4.691 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006929/0.09781, allocations: 4.856 MB / 331.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003435/0.1013, allocations: 1.38 MB / 333.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007467/0.1021, allocations: 15.94 kB / 333.1 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006829/0.1028, allocations: 123.2 kB / 333.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001461/0.1043, allocations: 297.9 kB / 333.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007685/0.1051, allocations: 187.8 kB / 333.7 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001467/0.1066, allocations: 1.031 MB / 334.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004092/0.107, allocations: 301.9 kB / 335 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004884/0.1075, allocations: 410.6 kB / 335.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004446/0.108, allocations: 454.1 kB / 335.9 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.1081, allocations: 88 kB / 336 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.1082, allocations: 92 kB / 336.1 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001611/0.1084, allocations: 191.3 kB / 336.2 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003883/0.1088, allocations: 481.8 kB / 336.7 MB, free: 10.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009596/0.1098, allocations: 1.059 MB / 337.8 MB, free: 9.711 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1098, allocations: 0 / 337.8 MB, free: 9.711 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1098, allocations: 0 / 337.8 MB, free: 9.711 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.1098, allocations: 0 / 337.8 MB, free: 9.711 MB / 286.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.002186/0.112, allocations: 1.22 MB / 339 MB, free: 8.422 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.1121, allocations: 12.03 kB / 339 MB, free: 8.41 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001621/0.1122, allocations: 107.9 kB / 339.1 MB, free: 8.293 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.1124, allocations: 103.8 kB / 339.2 MB, free: 8.191 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007539/0.1132, allocations: 0.5084 MB / 339.7 MB, free: 7.641 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/0.1133, allocations: 101.3 kB / 339.8 MB, free: 7.531 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.345e-05/0.1134, allocations: 60.31 kB / 339.9 MB, free: 7.473 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.1147, allocations: 0.8088 MB / 340.7 MB, free: 6.559 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.1148, allocations: 0 / 340.7 MB, free: 6.559 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.463e-05/0.1149, allocations: 35.94 kB / 340.7 MB, free: 6.523 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.1149, allocations: 12 kB / 340.7 MB, free: 6.512 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.116, allocations: 0.5048 MB / 341.2 MB, free: 6.008 MB / 286.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.003203/0.1192, allocations: 2.175 MB / 343.4 MB, free: 3.695 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.1205, allocations: 0.5292 MB / 343.9 MB, free: 3.156 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005435/0.121, allocations: 270.3 kB / 344.2 MB, free: 2.891 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.464e-05/0.1211, allocations: 13.64 kB / 344.2 MB, free: 2.879 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007711/0.1219, allocations: 331 kB / 344.5 MB, free: 2.543 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 2.254e-06/0.1219, allocations: 0 / 344.5 MB, free: 2.543 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.00482/0.1267, allocations: 1.477 MB / 346 MB, free: 1.016 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004641/0.1272, allocations: 0.8194 MB / 346.8 MB, free: 16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008394/0.128, allocations: 0.5939 MB / 347.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.118e-05/0.1281, allocations: 45.7 kB / 347.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/0.1284, allocations: 344.7 kB / 347.8 MB, free: 15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.1286, allocations: 185.3 kB / 348 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/0.1288, allocations: 130.1 kB / 348.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1289, allocations: 378.8 kB / 348.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005152/0.1294, allocations: 213 kB / 348.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007661/0.1302, allocations: 0.513 MB / 349.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.1313, allocations: 0.5653 MB / 349.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.1313, allocations: 4 kB / 349.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002157/0.1335, allocations: 0.8974 MB / 350.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.218e-05/0.1336, allocations: 63.41 kB / 350.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.1336, allocations: 0 / 350.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007068/0.1343, allocations: 229.5 kB / 351 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006014/0.1349, allocations: 119.8 kB / 351.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006131/0.141, allocations: 4.592 MB / 355.7 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008477/0.1419, allocations: 83.48 kB / 355.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.109e-05/0.142, allocations: 24.16 kB / 355.8 MB, free: 6.527 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.0003332/0.1423, allocations: 217.7 kB / 356 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.1425, allocations: 83 kB / 356.1 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.1426, allocations: 78.86 kB / 356.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1426, allocations: 8 kB / 356.2 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1426, allocations: 0 / 356.2 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001999/0.1446, allocations: 1.05 MB / 357.2 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002762/0.1474, allocations: 1.541 MB / 358.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.1474, allocations: 0 / 358.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005953/0.148, allocations: 111.8 kB / 358.9 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005315/0.1486, allocations: 181.4 kB / 359 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.833e-05/0.1486, allocations: 15.98 kB / 359.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004624/0.1532, allocations: 3.928 MB / 363 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1533, allocations: 64 / 363 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.1554, allocations: 1.031 MB / 364 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/0.1558, allocations: 212.1 kB / 364.2 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.1559, allocations: 19.98 kB / 364.2 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005767/0.1565, allocations: 43.95 kB / 364.3 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.1566, allocations: 52.56 kB / 364.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.63e-05/0.1566, allocations: 20.09 kB / 364.4 MB, free: 13.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004654/0.1571, allocations: 419 kB / 364.8 MB, free: 13.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1571, allocations: 0 / 364.8 MB, free: 13.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007741/0.1579, allocations: 251.7 kB / 365 MB, free: 12.78 MB / 318.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.002513/0.1604, allocations: 1.595 MB / 366.6 MB, free: 11.15 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002077/0.1625, allocations: 1.046 MB / 367.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.1625, allocations: 4 kB / 367.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009003/0.1634, allocations: 0.5438 MB / 368.2 MB, free: 9.484 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009698/0.1644, allocations: 202.3 kB / 368.4 MB, free: 9.289 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009624/0.1741, allocations: 6.634 MB / 375 MB, free: 2.484 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.1745, allocations: 0.92 MB / 376 MB, free: 1.535 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003958/0.1749, allocations: 81.22 kB / 376 MB, free: 1.457 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003011/0.1752, allocations: 263.3 kB / 376.3 MB, free: 1.199 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1752, allocations: 0 / 376.3 MB, free: 1.199 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1825/0.3577, allocations: 22.1 MB / 398.4 MB, free: 44.06 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001853/0.358, allocations: 236.4 kB / 398.6 MB, free: 43.79 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.487/2.845, allocations: 0 / 398.6 MB, free: 43.79 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches