Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",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.001496/0.001496, allocations: 108 kB / 16.92 MB, free: 6.332 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.001761/0.001761, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.422/1.422, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001588, allocations: 48.09 kB / 300.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1223, allocations: 49.43 MB / 350.1 MB, free: 4.363 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.007632/0.13, allocations: 4.376 MB / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003167/0.1332, allocations: 1.215 MB / 355.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005449/0.1337, allocations: 11.94 kB / 355.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005445/0.1343, allocations: 134.8 kB / 355.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009435/0.1353, allocations: 261.8 kB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006281/0.1359, allocations: 191.7 kB / 356.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001502/0.1374, allocations: 0.9244 MB / 357.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004944/0.1379, allocations: 248.8 kB / 357.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007657/0.1387, allocations: 362.7 kB / 357.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009023/0.1396, allocations: 406.3 kB / 358.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.1398, allocations: 76 kB / 358.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002595/0.14, allocations: 76 kB / 358.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002237/0.1403, allocations: 171.4 kB / 358.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006072/0.1409, allocations: 414.1 kB / 359 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.1421, allocations: 0.9071 MB / 359.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.292e-05/0.1422, allocations: 0 / 359.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1422, allocations: 0 / 359.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.795e-05/0.1423, allocations: 4 kB / 359.9 MB, free: 10.58 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002822/0.1451, allocations: 1.109 MB / 361 MB, free: 9.406 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1452, allocations: 8.031 kB / 361 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001554/0.1453, allocations: 95.7 kB / 361.1 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003381/0.1457, allocations: 91.84 kB / 361.2 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009403/0.1466, allocations: 488.5 kB / 361.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.1469, allocations: 92.97 kB / 361.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.147, allocations: 52.36 kB / 361.8 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.1486, allocations: 0.6592 MB / 362.5 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.1486, allocations: 7.984 kB / 362.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.58e-05/0.1487, allocations: 23.94 kB / 362.5 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.997e-05/0.1487, allocations: 15.98 kB / 362.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.1502, allocations: 451.7 kB / 362.9 MB, free: 7.316 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.004247/0.1545, allocations: 1.975 MB / 364.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002297/0.1568, allocations: 0.6879 MB / 365.6 MB, free: 4.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007967/0.1576, allocations: 262 kB / 365.9 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.273e-05/0.1577, allocations: 20.36 kB / 365.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.1578, allocations: 39 kB / 365.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.713e-06/0.1578, allocations: 0 / 365.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005879/0.1637, allocations: 1.48 MB / 367.4 MB, free: 2.621 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002631/0.164, allocations: 0.5683 MB / 368 MB, free: 1.918 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009525/0.1649, allocations: 0.5343 MB / 368.5 MB, free: 1.375 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.633e-05/0.165, allocations: 41.7 kB / 368.5 MB, free: 1.328 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002748/0.1653, allocations: 288.5 kB / 368.8 MB, free: 1.039 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002512/0.1656, allocations: 189.1 kB / 369 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002747/0.1658, allocations: 114.2 kB / 369.1 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002178/0.1661, allocations: 378.7 kB / 369.5 MB, free: 364 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006032/0.1667, allocations: 189 kB / 369.7 MB, free: 176 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1838/0.3505, allocations: 412.7 kB / 370.1 MB, free: 25.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.352, allocations: 489.5 kB / 370.6 MB, free: 25.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.352, allocations: 1.219 kB / 370.6 MB, free: 25.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0031/0.3551, allocations: 0.8061 MB / 371.4 MB, free: 24.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.07e-05/0.3551, allocations: 32.48 kB / 371.4 MB, free: 24.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.3551, allocations: 1.156 kB / 371.4 MB, free: 24.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/0.3563, allocations: 225 kB / 371.6 MB, free: 24.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009137/0.3573, allocations: 126.7 kB / 371.7 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009227/0.3665, allocations: 5.611 MB / 377.3 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009445/0.3675, allocations: 74.31 kB / 377.4 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.3675, allocations: 19.72 kB / 377.4 MB, free: 20.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000274/0.3678, allocations: 194.3 kB / 377.6 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002906/0.3681, allocations: 72.59 kB / 377.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002995/0.3711, allocations: 0.7747 MB / 378.5 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.3712, allocations: 10.2 kB / 378.5 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3712, allocations: 5.234 kB / 378.5 MB, free: 19.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002637/0.3738, allocations: 1.038 MB / 379.5 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004755/0.3786, allocations: 1.5 MB / 381 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.787e-05/0.3787, allocations: 2.391 kB / 381 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008734/0.3795, allocations: 131.7 kB / 381.2 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/0.3806, allocations: 178.9 kB / 381.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.473e-05/0.3807, allocations: 8.672 kB / 381.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005633/0.3863, allocations: 3.799 MB / 385.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3863, allocations: 5.703 kB / 385.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003316/0.3896, allocations: 1.066 MB / 386.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004187/0.3901, allocations: 203.9 kB / 386.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.665e-05/0.3902, allocations: 18.73 kB / 386.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005919/0.3908, allocations: 36.81 kB / 386.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.391, allocations: 45.98 kB / 386.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.997e-05/0.3911, allocations: 15.17 kB / 386.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005929/0.3917, allocations: 386.5 kB / 386.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3917, allocations: 0 / 386.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001021/0.3928, allocations: 219.5 kB / 387.1 MB, free: 14.04 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003511/0.3963, allocations: 1.64 MB / 388.8 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003029/0.3993, allocations: 1.047 MB / 389.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3993, allocations: 5.375 kB / 389.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001181/0.4005, allocations: 0.5347 MB / 390.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.4017, allocations: 188.6 kB / 390.5 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01293/0.4146, allocations: 6.32 MB / 396.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005385/0.4152, allocations: 0.8919 MB / 397.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000593/0.4158, allocations: 78.77 kB / 397.8 MB, free: 7.641 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004491/0.4162, allocations: 232.6 kB / 398 MB, free: 7.453 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4162, allocations: 0 / 398 MB, free: 7.453 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06585/0.4821, allocations: 19.9 MB / 417.9 MB, free: 5.07 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.11, allocations: 3.938 kB / 417.9 MB, free: 5.066 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches