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.0009553/0.0009553, allocations: 106.4 kB / 17.15 MB, free: 6.309 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.001/0.001, allocations: 198 kB / 18.07 MB, free: 5.41 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.424/1.424, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.00117/0.00117, allocations: 51.92 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1137, allocations: 46.63 MB / 326.7 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006836/0.1205, allocations: 4.86 MB / 331.6 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003415/0.124, allocations: 1.387 MB / 332.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003543/0.1244, allocations: 11.94 kB / 333 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004382/0.1249, allocations: 115.2 kB / 333.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007342/0.1256, allocations: 309.8 kB / 333.4 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004724/0.1261, allocations: 191.8 kB / 333.6 MB, free: 13.9 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008994/0.127, allocations: 0.9798 MB / 334.5 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003696/0.1274, allocations: 269.9 kB / 334.8 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000417/0.1278, allocations: 370.6 kB / 335.2 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003962/0.1282, allocations: 434.1 kB / 335.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.1284, allocations: 68 kB / 335.7 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.1285, allocations: 64 kB / 335.7 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.1287, allocations: 167.3 kB / 335.9 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000392/0.1291, allocations: 457.8 kB / 336.3 MB, free: 11.1 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008494/0.1299, allocations: 1.032 MB / 337.4 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1299, allocations: 0 / 337.4 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1299, allocations: 0 / 337.4 MB, free: 10.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.1299, allocations: 0 / 337.4 MB, free: 10.07 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.002153/0.1321, allocations: 1.22 MB / 338.6 MB, free: 8.781 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.1322, allocations: 12.02 kB / 338.6 MB, free: 8.77 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001747/0.1324, allocations: 103.9 kB / 338.7 MB, free: 8.656 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.1325, allocations: 103.8 kB / 338.8 MB, free: 8.555 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007017/0.1332, allocations: 0.5083 MB / 339.3 MB, free: 8.004 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001545/0.1334, allocations: 109.3 kB / 339.4 MB, free: 7.887 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.1335, allocations: 48.38 kB / 339.5 MB, free: 7.84 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.1348, allocations: 0.8127 MB / 340.3 MB, free: 6.922 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.1349, allocations: 0 / 340.3 MB, free: 6.922 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.491e-05/0.135, allocations: 28 kB / 340.3 MB, free: 6.895 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.135, allocations: 15.94 kB / 340.3 MB, free: 6.879 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.1361, allocations: 0.5086 MB / 340.8 MB, free: 6.371 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.003243/0.1394, allocations: 2.179 MB / 343 MB, free: 4.055 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.1406, allocations: 0.5338 MB / 343.5 MB, free: 3.512 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005503/0.1412, allocations: 254.4 kB / 343.8 MB, free: 3.262 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.174e-05/0.1412, allocations: 20.55 kB / 343.8 MB, free: 3.242 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008214/0.1421, allocations: 322.9 kB / 344.1 MB, free: 2.914 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 3.437e-06/0.1421, allocations: 0 / 344.1 MB, free: 2.914 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.004944/0.147, allocations: 1.489 MB / 345.6 MB, free: 1.375 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004113/0.1475, allocations: 0.8233 MB / 346.4 MB, free: 360 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007688/0.1482, allocations: 0.5978 MB / 347 MB, free: 15.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.265e-05/0.1483, allocations: 37.7 kB / 347.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002702/0.1486, allocations: 345.1 kB / 347.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.1488, allocations: 189.3 kB / 347.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002173/0.149, allocations: 134.1 kB / 347.7 MB, free: 15.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.1492, allocations: 374.8 kB / 348.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005748/0.1498, allocations: 213 kB / 348.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008182/0.1506, allocations: 0.5169 MB / 348.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.1517, allocations: 0.5653 MB / 349.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.1517, allocations: 0 / 349.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002169/0.1539, allocations: 0.9013 MB / 350.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.928e-05/0.154, allocations: 63.39 kB / 350.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.154, allocations: 4 kB / 350.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007019/0.1547, allocations: 217.5 kB / 350.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005931/0.1553, allocations: 115.8 kB / 350.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006039/0.1614, allocations: 4.193 MB / 354.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008242/0.1622, allocations: 79.48 kB / 354.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.864e-05/0.1623, allocations: 27.94 kB / 355 MB, free: 7.301 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.0003554/0.1626, allocations: 213.8 kB / 355.2 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.1627, allocations: 79.17 kB / 355.2 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/0.1629, allocations: 78.8 kB / 355.3 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.1629, allocations: 8 kB / 355.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1629, allocations: 0 / 355.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002015/0.1649, allocations: 1.058 MB / 356.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002544/0.1675, allocations: 1.537 MB / 357.9 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1675, allocations: 0 / 357.9 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005837/0.1681, allocations: 115.8 kB / 358 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005223/0.1686, allocations: 169.6 kB / 358.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.729e-05/0.1687, allocations: 15.98 kB / 358.2 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00464/0.1733, allocations: 3.592 MB / 361.8 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.1733, allocations: 3.938 kB / 361.8 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.1757, allocations: 1.031 MB / 362.8 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003388/0.1761, allocations: 216.1 kB / 363.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.79e-05/0.1762, allocations: 16 kB / 363.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005723/0.1768, allocations: 52.12 kB / 363.1 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.1769, allocations: 48.48 kB / 363.2 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.268e-05/0.177, allocations: 19.94 kB / 363.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005023/0.1775, allocations: 423.1 kB / 363.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1775, allocations: 0 / 363.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008952/0.1784, allocations: 247.7 kB / 363.8 MB, free: 13.9 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.002593/0.181, allocations: 1.603 MB / 365.4 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.1831, allocations: 1.007 MB / 366.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1831, allocations: 0 / 366.5 MB, free: 11.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009563/0.1841, allocations: 0.5477 MB / 367 MB, free: 10.64 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009583/0.185, allocations: 195.1 kB / 367.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/0.1964, allocations: 6.644 MB / 373.8 MB, free: 3.641 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005084/0.197, allocations: 0.916 MB / 374.8 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004782/0.1975, allocations: 85.22 kB / 374.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003388/0.1978, allocations: 259.3 kB / 375.1 MB, free: 2.355 MB / 318.1 MB Notification: Performance of SimCode: time 2.054e-06/0.1978, allocations: 3.938 kB / 375.1 MB, free: 2.352 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.22/0.4178, allocations: 21.2 MB / 396.3 MB, free: 45.07 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001922/0.4181, allocations: 240.2 kB / 396.5 MB, free: 44.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.407/2.825, allocations: 0 / 396.5 MB, free: 44.8 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