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.0007406/0.0007406, allocations: 95.14 kB / 17.3 MB, free: 6.391 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.00094/0.00094, allocations: 172.7 kB / 18.2 MB, free: 5.551 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.399/1.399, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004636/0.0004636, allocations: 20.52 kB / 281.5 MB, free: 3.312 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09546/0.09593, allocations: 47.58 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004782/0.1008, allocations: 4.451 MB / 333.5 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.103, allocations: 1.384 MB / 334.9 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002262/0.1032, allocations: 7.938 kB / 334.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003244/0.1035, allocations: 123.2 kB / 335 MB, free: 13.67 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005661/0.1041, allocations: 301.8 kB / 335.3 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.1045, allocations: 191.8 kB / 335.5 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008201/0.1053, allocations: 0.9837 MB / 336.5 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003475/0.1057, allocations: 261.9 kB / 336.7 MB, free: 11.92 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003724/0.1061, allocations: 362.6 kB / 337.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004025/0.1065, allocations: 418.1 kB / 337.5 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.442e-05/0.1066, allocations: 56 kB / 337.6 MB, free: 11.1 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.1067, allocations: 56 kB / 337.6 MB, free: 11.05 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.1068, allocations: 163.3 kB / 337.8 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003872/0.1072, allocations: 467.5 kB / 338.2 MB, free: 10.42 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007853/0.108, allocations: 1.008 MB / 339.2 MB, free: 9.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.108, allocations: 0 / 339.2 MB, free: 9.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.108, allocations: 4 kB / 339.2 MB, free: 9.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.1081, allocations: 0 / 339.2 MB, free: 9.406 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.001823/0.1099, allocations: 1.08 MB / 340.3 MB, free: 8.262 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1099, allocations: 15.97 kB / 340.3 MB, free: 8.246 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001539/0.1101, allocations: 107.9 kB / 340.4 MB, free: 8.129 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.1102, allocations: 99.81 kB / 340.5 MB, free: 8.031 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006356/0.1109, allocations: 0.5162 MB / 341.1 MB, free: 7.473 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.111, allocations: 101.3 kB / 341.2 MB, free: 7.363 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.805e-05/0.1111, allocations: 56.28 kB / 341.2 MB, free: 7.309 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.1124, allocations: 0.8283 MB / 342 MB, free: 6.375 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.1124, allocations: 4 kB / 342 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.042e-05/0.1125, allocations: 24 kB / 342.1 MB, free: 6.348 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.1125, allocations: 12 kB / 342.1 MB, free: 6.336 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.1137, allocations: 0.5399 MB / 342.6 MB, free: 5.797 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.002973/0.1167, allocations: 2.198 MB / 344.8 MB, free: 3.461 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.1179, allocations: 0.5689 MB / 345.4 MB, free: 2.879 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005613/0.1185, allocations: 274.4 kB / 345.7 MB, free: 2.609 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.1186, allocations: 16.92 kB / 345.7 MB, free: 2.594 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007469/0.1193, allocations: 346.9 kB / 346 MB, free: 2.242 MB / 286.1 MB Notification: Performance of pre-optimization done (n=56): time 3.025e-06/0.1193, allocations: 0 / 346 MB, free: 2.242 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.004913/0.1243, allocations: 1.599 MB / 347.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004045/0.1247, allocations: 0.8233 MB / 348.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006999/0.1254, allocations: 0.59 MB / 349 MB, free: 14.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.937e-05/0.1255, allocations: 45.7 kB / 349.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000274/0.1257, allocations: 344.6 kB / 349.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.1259, allocations: 189.3 kB / 349.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.702e-05/0.126, allocations: 49.69 kB / 349.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.1262, allocations: 378.8 kB / 350 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005717/0.1268, allocations: 229 kB / 350.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008336/0.1276, allocations: 0.5364 MB / 350.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.1288, allocations: 0.5966 MB / 351.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1288, allocations: 4 kB / 351.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002179/0.131, allocations: 0.9443 MB / 352.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.959e-05/0.131, allocations: 67.34 kB / 352.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.131, allocations: 4 kB / 352.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006652/0.1317, allocations: 229.5 kB / 352.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005773/0.1323, allocations: 119.8 kB / 352.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005871/0.1382, allocations: 4.26 MB / 357 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007806/0.139, allocations: 95.39 kB / 357.1 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/0.139, allocations: 27.92 kB / 357.1 MB, free: 6.383 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.0003595/0.1394, allocations: 209.7 kB / 357.3 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.789e-05/0.1395, allocations: 79.16 kB / 357.4 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001342/0.1397, allocations: 74.97 kB / 357.5 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.1397, allocations: 11.94 kB / 357.5 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.1397, allocations: 4 kB / 357.5 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002026/0.1417, allocations: 1.109 MB / 358.6 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002541/0.1443, allocations: 1.576 MB / 360.2 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.1443, allocations: 0 / 360.2 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000575/0.1449, allocations: 115.9 kB / 360.3 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005092/0.1454, allocations: 177.5 kB / 360.4 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.415e-05/0.1454, allocations: 15.98 kB / 360.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004304/0.1497, allocations: 3.662 MB / 364.1 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.1498, allocations: 4.094 kB / 364.1 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002299/0.1521, allocations: 1.074 MB / 365.2 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002887/0.1524, allocations: 224.1 kB / 365.4 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.57e-05/0.1525, allocations: 12 kB / 365.4 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005899/0.153, allocations: 55.95 kB / 365.5 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.1532, allocations: 52.48 kB / 365.5 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.143e-05/0.1532, allocations: 12 kB / 365.5 MB, free: 13.42 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004854/0.1537, allocations: 423.1 kB / 366 MB, free: 13.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1537, allocations: 0 / 366 MB, free: 13.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007536/0.1545, allocations: 259.6 kB / 366.2 MB, free: 12.76 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.002531/0.157, allocations: 1.638 MB / 367.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.159, allocations: 1.043 MB / 368.9 MB, free: 9.996 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.159, allocations: 4.062 kB / 368.9 MB, free: 9.992 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009037/0.1599, allocations: 0.559 MB / 369.5 MB, free: 9.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008861/0.1608, allocations: 199.1 kB / 369.7 MB, free: 9.215 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009679/0.1705, allocations: 6.784 MB / 376.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004217/0.1709, allocations: 0.9199 MB / 377.4 MB, free: 1.316 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003722/0.1713, allocations: 89.2 kB / 377.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002989/0.1716, allocations: 263.3 kB / 377.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1716, allocations: 0 / 377.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1812/0.3529, allocations: 20.99 MB / 398.7 MB, free: 43.13 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001419/0.353, allocations: 231.6 kB / 398.9 MB, free: 42.87 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.417/2.77, allocations: 0 / 398.9 MB, free: 42.87 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