Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001338/0.001338, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0015/0.0015, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 59.69 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1164, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006909/0.1233, allocations: 4.829 MB / 362.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003423/0.1268, allocations: 1.402 MB / 363.8 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008064/0.1276, allocations: 8 kB / 363.8 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006359/0.1283, allocations: 154.7 kB / 364 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001134/0.1295, allocations: 341.3 kB / 364.3 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005957/0.1301, allocations: 211.6 kB / 364.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001433/0.1316, allocations: 1.022 MB / 365.5 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005094/0.1321, allocations: 289.9 kB / 365.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000871/0.133, allocations: 414.5 kB / 366.2 MB, free: 5.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007106/0.1337, allocations: 450.1 kB / 366.7 MB, free: 4.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002714/0.134, allocations: 88 kB / 366.8 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003054/0.1343, allocations: 92 kB / 366.8 MB, free: 4.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002298/0.1345, allocations: 199.3 kB / 367 MB, free: 4.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005775/0.1351, allocations: 473.9 kB / 367.5 MB, free: 4.039 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009853/0.1361, allocations: 1.059 MB / 368.6 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1361, allocations: 0 / 368.6 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1361, allocations: 0 / 368.6 MB, free: 2.977 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.412e-05/0.1361, allocations: 0 / 368.6 MB, free: 2.977 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.002183/0.1383, allocations: 1.224 MB / 369.8 MB, free: 1.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.1384, allocations: 16.03 kB / 369.8 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001666/0.1386, allocations: 111.8 kB / 369.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.1387, allocations: 99.91 kB / 370 MB, free: 1.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006998/0.1394, allocations: 0.5045 MB / 370.5 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.1396, allocations: 105.3 kB / 370.6 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.181e-05/0.1397, allocations: 52.38 kB / 370.7 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1622/0.3019, allocations: 0.8016 MB / 371.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.143e-05/0.3019, allocations: 1.203 kB / 371.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.615e-05/0.302, allocations: 24.5 kB / 371.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.302, allocations: 14.59 kB / 371.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.3033, allocations: 0.5091 MB / 372 MB, free: 19.86 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.003735/0.3071, allocations: 2.184 MB / 374.2 MB, free: 18.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.3086, allocations: 0.5308 MB / 374.7 MB, free: 18.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006769/0.3093, allocations: 262.4 kB / 375 MB, free: 18.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.515e-05/0.3093, allocations: 14.44 kB / 375 MB, free: 18.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009029/0.3102, allocations: 325 kB / 375.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 3.076e-06/0.3102, allocations: 1 kB / 375.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004977/0.3152, allocations: 1.483 MB / 376.8 MB, free: 17.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001757/0.3154, allocations: 0.8286 MB / 377.6 MB, free: 16.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006829/0.3161, allocations: 0.5857 MB / 378.2 MB, free: 16.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.674e-05/0.3162, allocations: 41.69 kB / 378.3 MB, free: 16.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000223/0.3164, allocations: 339.3 kB / 378.6 MB, free: 16.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.3166, allocations: 198.3 kB / 378.8 MB, free: 16.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/0.3168, allocations: 132.2 kB / 378.9 MB, free: 16.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.727e-05/0.3169, allocations: 380 kB / 379.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005397/0.3174, allocations: 208.2 kB / 379.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007053/0.3181, allocations: 0.5193 MB / 380 MB, free: 15.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.3192, allocations: 0.5678 MB / 380.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.3192, allocations: 0 / 380.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002276/0.3215, allocations: 0.9023 MB / 381.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.837e-05/0.3216, allocations: 59.97 kB / 381.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.3216, allocations: 2.562 kB / 381.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007671/0.3224, allocations: 223.2 kB / 381.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000632/0.323, allocations: 117.5 kB / 381.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00621/0.3292, allocations: 4.601 MB / 386.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008139/0.3301, allocations: 78.05 kB / 386.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.092e-05/0.3301, allocations: 22.7 kB / 386.6 MB, free: 10.61 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.00038/0.3305, allocations: 222 kB / 386.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.3306, allocations: 80.19 kB / 386.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001366/0.3308, allocations: 80.55 kB / 386.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3308, allocations: 9.406 kB / 386.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.3308, allocations: 0 / 386.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001922/0.3327, allocations: 1.05 MB / 388 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.3353, allocations: 1.544 MB / 389.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.3353, allocations: 1.219 kB / 389.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005816/0.3359, allocations: 111.7 kB / 389.7 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005222/0.3365, allocations: 177 kB / 389.8 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.965e-05/0.3365, allocations: 11.94 kB / 389.8 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004327/0.3408, allocations: 3.928 MB / 393.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3409, allocations: 0 / 393.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.3432, allocations: 1.024 MB / 394.8 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003654/0.3435, allocations: 213.4 kB / 395 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.3437, allocations: 30.83 kB / 395 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006165/0.3443, allocations: 42.83 kB / 395.1 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.3445, allocations: 50.31 kB / 395.1 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.548e-05/0.3445, allocations: 18.11 kB / 395.1 MB, free: 4.391 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006199/0.3452, allocations: 417 kB / 395.5 MB, free: 4.152 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3452, allocations: 4.062 kB / 395.5 MB, free: 4.148 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001096/0.3463, allocations: 253.6 kB / 395.8 MB, free: 4.109 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.002449/0.3487, allocations: 1.601 MB / 397.4 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002132/0.3509, allocations: 1.028 MB / 398.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.3509, allocations: 2.75 kB / 398.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008651/0.3518, allocations: 0.5479 MB / 399 MB, free: 1.871 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009104/0.3527, allocations: 210.8 kB / 399.2 MB, free: 1.758 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009957/0.3627, allocations: 6.405 MB / 405.6 MB, free: 13.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005454/0.3632, allocations: 0.916 MB / 406.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004358/0.3637, allocations: 85.22 kB / 406.6 MB, free: 12.15 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003247/0.364, allocations: 259.3 kB / 406.8 MB, free: 11.9 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.364, allocations: 0 / 406.8 MB, free: 11.9 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05207/0.4161, allocations: 22.46 MB / 429.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.83, allocations: 19.78 kB / 429.3 MB, free: 5.77 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches