Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.PumpAndValve,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_3_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.001285/0.001285, allocations: 96.39 kB / 17.58 MB, free: 5.418 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.00123/0.00123, allocations: 196 kB / 18.51 MB, free: 4.504 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.445/1.445, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001679/0.001679, allocations: 55.94 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09884/0.1005, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.00588/0.1065, allocations: 4.357 MB / 331.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.1088, allocations: 1.263 MB / 333 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002701/0.1091, allocations: 7.938 kB / 333 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003968/0.1096, allocations: 138.8 kB / 333.1 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005859/0.1102, allocations: 269.7 kB / 333.4 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004151/0.1106, allocations: 199.6 kB / 333.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001047/0.1116, allocations: 0.9218 MB / 334.5 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003837/0.112, allocations: 236.6 kB / 334.8 MB, free: 12.94 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004537/0.1125, allocations: 366.6 kB / 335.1 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004736/0.113, allocations: 394.4 kB / 335.5 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.1131, allocations: 79.94 kB / 335.6 MB, free: 12.12 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.1133, allocations: 76 kB / 335.6 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001668/0.1134, allocations: 171.4 kB / 335.8 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004081/0.1139, allocations: 422.1 kB / 336.2 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009249/0.1148, allocations: 0.907 MB / 337.1 MB, free: 10.55 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1148, allocations: 0 / 337.1 MB, free: 10.55 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.1148, allocations: 4 kB / 337.1 MB, free: 10.55 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.1148, allocations: 0 / 337.1 MB, free: 10.55 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.00212/0.117, allocations: 1.109 MB / 338.2 MB, free: 9.371 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.117, allocations: 8.031 kB / 338.3 MB, free: 9.363 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/0.1172, allocations: 91.7 kB / 338.3 MB, free: 9.266 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.1173, allocations: 88 kB / 338.4 MB, free: 9.18 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006923/0.118, allocations: 488.5 kB / 338.9 MB, free: 8.664 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.1182, allocations: 101 kB / 339 MB, free: 8.555 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.042e-05/0.1183, allocations: 44.38 kB / 339.1 MB, free: 8.512 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.1195, allocations: 0.6631 MB / 339.7 MB, free: 7.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.855e-05/0.1195, allocations: 0 / 339.7 MB, free: 7.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.724e-05/0.1196, allocations: 24 kB / 339.7 MB, free: 7.746 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.1196, allocations: 8 kB / 339.7 MB, free: 7.738 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.1207, allocations: 451.7 kB / 340.2 MB, free: 7.301 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.003456/0.1242, allocations: 1.979 MB / 342.2 MB, free: 5.191 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.1262, allocations: 0.6903 MB / 342.9 MB, free: 4.477 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00058/0.1268, allocations: 262 kB / 343.1 MB, free: 4.219 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.531e-05/0.1268, allocations: 12.42 kB / 343.1 MB, free: 4.207 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.1269, allocations: 43 kB / 343.2 MB, free: 4.156 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.044e-06/0.1269, allocations: 0 / 343.2 MB, free: 4.156 MB / 286.1 MB Notification: Performance of matching and sorting (n=54): time 0.005171/0.132, allocations: 1.488 MB / 344.7 MB, free: 2.594 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003046/0.1324, allocations: 0.5605 MB / 345.2 MB, free: 1.898 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007022/0.1331, allocations: 0.5343 MB / 345.7 MB, free: 1.355 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.009e-05/0.1331, allocations: 41.64 kB / 345.8 MB, free: 1.309 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002461/0.1334, allocations: 292.5 kB / 346.1 MB, free: 1.02 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.1336, allocations: 181.3 kB / 346.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/0.1338, allocations: 122.1 kB / 346.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.134, allocations: 378.7 kB / 346.7 MB, free: 340 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005075/0.1345, allocations: 189 kB / 346.9 MB, free: 152 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007744/0.1353, allocations: 416.3 kB / 347.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.1364, allocations: 0.4888 MB / 347.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1364, allocations: 0 / 347.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002406/0.1388, allocations: 0.8029 MB / 348.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.895e-05/0.1389, allocations: 33.7 kB / 348.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.1389, allocations: 3.984 kB / 348.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.1399, allocations: 226.3 kB / 348.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000726/0.1407, allocations: 135.8 kB / 349 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008116/0.1488, allocations: 5.606 MB / 354.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007531/0.1496, allocations: 71.55 kB / 354.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.552e-05/0.1496, allocations: 20.25 kB / 354.7 MB, free: 7.812 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.0003245/0.15, allocations: 201.8 kB / 354.9 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.1501, allocations: 75.16 kB / 355 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002402/0.1525, allocations: 0.7696 MB / 355.7 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.1525, allocations: 7.938 kB / 355.8 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.1525, allocations: 4 kB / 355.8 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002337/0.1549, allocations: 1.046 MB / 356.8 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00334/0.1582, allocations: 1.502 MB / 358.3 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.1583, allocations: 4 kB / 358.3 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007779/0.159, allocations: 131.8 kB / 358.4 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008727/0.1599, allocations: 173.5 kB / 358.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.16, allocations: 15.98 kB / 358.6 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00563/0.1656, allocations: 3.795 MB / 362.4 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1656, allocations: 3.938 kB / 362.4 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003016/0.1687, allocations: 1.07 MB / 363.5 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004611/0.1691, allocations: 204.2 kB / 363.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.1693, allocations: 19.98 kB / 363.7 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005181/0.1698, allocations: 35.91 kB / 363.7 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.1699, allocations: 44.5 kB / 363.8 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.314e-05/0.17, allocations: 15.98 kB / 363.8 MB, free: 14.17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005223/0.1705, allocations: 387 kB / 364.2 MB, free: 13.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1705, allocations: 0 / 364.2 MB, free: 13.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008716/0.1714, allocations: 227.7 kB / 364.4 MB, free: 13.57 MB / 318.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.003301/0.1747, allocations: 1.63 MB / 366 MB, free: 11.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002733/0.1775, allocations: 1.046 MB / 367.1 MB, free: 10.8 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.378e-06/0.1775, allocations: 4 kB / 367.1 MB, free: 10.8 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.1786, allocations: 0.5277 MB / 367.6 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000972/0.1795, allocations: 182.6 kB / 367.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01178/0.1913, allocations: 6.326 MB / 374.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006003/0.192, allocations: 0.8879 MB / 375 MB, free: 2.707 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004343/0.1924, allocations: 81.12 kB / 375.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00037/0.1928, allocations: 227.4 kB / 375.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1928, allocations: 3.938 kB / 375.3 MB, free: 2.406 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2063/0.3991, allocations: 19.9 MB / 395.2 MB, free: 47.34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.23, allocations: 6.562 kB / 395.2 MB, free: 47.34 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches