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.001457/0.001457, allocations: 106.1 kB / 16.92 MB, free: 5.777 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.001531/0.001531, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.559/1.559, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 43.77 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1246, allocations: 49.44 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.007687/0.1323, allocations: 4.834 MB / 355 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003295/0.1357, allocations: 1.347 MB / 356.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000937/0.1366, allocations: 11.94 kB / 356.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007423/0.1374, allocations: 158.7 kB / 356.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001311/0.1388, allocations: 329.4 kB / 356.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007583/0.1395, allocations: 219.6 kB / 357 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001842/0.1414, allocations: 1.026 MB / 358.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005972/0.142, allocations: 289.9 kB / 358.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001144/0.1432, allocations: 402.6 kB / 358.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001139/0.1443, allocations: 454.1 kB / 359.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004527/0.1448, allocations: 88 kB / 359.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003581/0.1452, allocations: 88 kB / 359.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002103/0.1454, allocations: 199.3 kB / 359.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006323/0.146, allocations: 477.8 kB / 360 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.1472, allocations: 1.059 MB / 361.1 MB, free: 9.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.984e-06/0.1472, allocations: 4 kB / 361.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1472, allocations: 0 / 361.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.1473, allocations: 0 / 361.1 MB, free: 9.352 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.002212/0.1495, allocations: 1.232 MB / 362.3 MB, free: 8.051 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.1495, allocations: 12.02 kB / 362.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001695/0.1497, allocations: 103.9 kB / 362.4 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001783/0.1499, allocations: 99.91 kB / 362.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007359/0.1506, allocations: 0.5045 MB / 363 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.1508, allocations: 109.2 kB / 363.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.819e-05/0.1509, allocations: 52.38 kB / 363.2 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.1523, allocations: 0.8092 MB / 364 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.1524, allocations: 4 kB / 364 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.594e-05/0.1524, allocations: 28 kB / 364 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.1524, allocations: 12 kB / 364 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.1536, allocations: 0.5048 MB / 364.5 MB, free: 5.656 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.003291/0.1569, allocations: 2.194 MB / 366.7 MB, free: 3.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.1582, allocations: 0.5341 MB / 367.3 MB, free: 2.777 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005893/0.1588, allocations: 262.4 kB / 367.5 MB, free: 2.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.792e-05/0.1589, allocations: 13.64 kB / 367.5 MB, free: 2.504 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008126/0.1597, allocations: 319 kB / 367.9 MB, free: 2.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.494e-06/0.1597, allocations: 0 / 367.9 MB, free: 2.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004864/0.1646, allocations: 1.493 MB / 369.3 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.235/0.3996, allocations: 0.8194 MB / 370.2 MB, free: 25.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/0.4007, allocations: 0.5865 MB / 370.8 MB, free: 25.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002261/0.4009, allocations: 42.45 kB / 370.8 MB, free: 25.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002902/0.4012, allocations: 341.7 kB / 371.1 MB, free: 25.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002212/0.4014, allocations: 190 kB / 371.3 MB, free: 25.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000282/0.4017, allocations: 127.4 kB / 371.4 MB, free: 25.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.402, allocations: 378.2 kB / 371.8 MB, free: 24.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007208/0.4027, allocations: 216 kB / 372 MB, free: 24.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009525/0.4036, allocations: 0.5225 MB / 372.5 MB, free: 24.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.4049, allocations: 0.5635 MB / 373.1 MB, free: 24.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.4049, allocations: 0 / 373.1 MB, free: 24.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002538/0.4074, allocations: 0.9008 MB / 374 MB, free: 23.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.033e-05/0.4075, allocations: 71.48 kB / 374.1 MB, free: 23.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.4075, allocations: 5.906 kB / 374.1 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007469/0.4082, allocations: 220.3 kB / 374.3 MB, free: 23.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000623/0.4089, allocations: 112.8 kB / 374.4 MB, free: 23.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005898/0.4148, allocations: 4.59 MB / 379 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000946/0.4158, allocations: 90.31 kB / 379.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.345e-05/0.4158, allocations: 22.28 kB / 379.1 MB, free: 20.07 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.0003981/0.4162, allocations: 208.7 kB / 379.3 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.4164, allocations: 84.59 kB / 379.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001474/0.4165, allocations: 78.95 kB / 379.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4165, allocations: 6.078 kB / 379.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.4165, allocations: 3.938 kB / 379.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002096/0.4187, allocations: 1.05 MB / 380.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002898/0.4216, allocations: 1.545 MB / 382.1 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.4216, allocations: 3.594 kB / 382.1 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006374/0.4222, allocations: 107.5 kB / 382.2 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006005/0.4228, allocations: 171.5 kB / 382.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-05/0.4229, allocations: 17.56 kB / 382.4 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004624/0.4275, allocations: 3.929 MB / 386.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4275, allocations: 1.156 kB / 386.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00253/0.4301, allocations: 1.018 MB / 387.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003247/0.4304, allocations: 214.2 kB / 387.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.4305, allocations: 23.55 kB / 387.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005833/0.4311, allocations: 50.64 kB / 387.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.4313, allocations: 55.95 kB / 387.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.748e-05/0.4313, allocations: 17.19 kB / 387.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006025/0.4319, allocations: 419 kB / 388.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.432, allocations: 0 / 388.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009887/0.433, allocations: 249.4 kB / 388.3 MB, free: 13.86 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.002524/0.4355, allocations: 1.596 MB / 389.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002291/0.4378, allocations: 1.034 MB / 391 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.4378, allocations: 6.656 kB / 391 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000985/0.4388, allocations: 0.5533 MB / 391.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.4399, allocations: 216.9 kB / 391.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.4506, allocations: 6.386 MB / 398.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003917/0.451, allocations: 0.9155 MB / 399 MB, free: 7.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005103/0.4515, allocations: 89.14 kB / 399.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002838/0.4518, allocations: 262.3 kB / 399.4 MB, free: 7.016 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4518, allocations: 0 / 399.4 MB, free: 7.016 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07659/0.5284, allocations: 22.45 MB / 421.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.94, allocations: 14.86 kB / 421.8 MB, free: 1.492 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