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.001107/0.001107, allocations: 109.4 kB / 17.73 MB, free: 5.336 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.001166/0.001166, allocations: 192.2 kB / 18.67 MB, free: 4.402 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.322/1.322, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001327/0.001327, allocations: 51.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08234/0.08368, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005098/0.08881, allocations: 4.361 MB / 379 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1511/0.2399, allocations: 1.253 MB / 380.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003626/0.2403, allocations: 9.656 kB / 380.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003823/0.2407, allocations: 130.4 kB / 380.4 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005083/0.2413, allocations: 282.9 kB / 380.7 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003921/0.2417, allocations: 191.7 kB / 380.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008083/0.2425, allocations: 0.9319 MB / 381.8 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003181/0.2428, allocations: 248.3 kB / 382 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004712/0.2433, allocations: 363.7 kB / 382.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004504/0.2437, allocations: 406 kB / 382.8 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001473/0.2439, allocations: 76.19 kB / 382.9 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001307/0.244, allocations: 82.06 kB / 382.9 MB, free: 8.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.2442, allocations: 174.8 kB / 383.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003102/0.2445, allocations: 410.4 kB / 383.5 MB, free: 8.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008554/0.2453, allocations: 0.9226 MB / 384.4 MB, free: 8.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.2454, allocations: 1.531 kB / 384.4 MB, free: 8.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2454, allocations: 0.6094 kB / 384.4 MB, free: 8.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.2454, allocations: 0 / 384.4 MB, free: 8.277 MB / 318.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.001829/0.2472, allocations: 1.133 MB / 385.6 MB, free: 7.457 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.2473, allocations: 15.09 kB / 385.6 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.2474, allocations: 94.48 kB / 385.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.2475, allocations: 94.94 kB / 385.8 MB, free: 7.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006746/0.2482, allocations: 487.8 kB / 386.2 MB, free: 6.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.2484, allocations: 97.98 kB / 386.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.762e-05/0.2484, allocations: 48.22 kB / 386.4 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.2495, allocations: 0.6566 MB / 387 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.2495, allocations: 5.625 kB / 387 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.079e-05/0.2496, allocations: 22.38 kB / 387.1 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.2496, allocations: 14.91 kB / 387.1 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.2507, allocations: 451.9 kB / 387.5 MB, free: 6.32 MB / 318.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.002697/0.2534, allocations: 1.976 MB / 389.5 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001759/0.2551, allocations: 0.6808 MB / 390.2 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005206/0.2557, allocations: 264.3 kB / 390.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.511e-05/0.2557, allocations: 13.92 kB / 390.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.2558, allocations: 45.47 kB / 390.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 1.714e-06/0.2558, allocations: 0 / 390.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.004592/0.2604, allocations: 1.481 MB / 392 MB, free: 3.965 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.124e-05/0.2605, allocations: 0.5682 MB / 392.5 MB, free: 3.273 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00059/0.2611, allocations: 0.5345 MB / 393.1 MB, free: 3.023 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.231e-05/0.2611, allocations: 43.3 kB / 393.1 MB, free: 2.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.2613, allocations: 286 kB / 393.4 MB, free: 2.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.2614, allocations: 203.2 kB / 393.6 MB, free: 2.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/0.2616, allocations: 116.4 kB / 393.7 MB, free: 2.527 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.332e-05/0.2617, allocations: 373.1 kB / 394.1 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004792/0.2622, allocations: 199.7 kB / 394.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005967/0.2628, allocations: 417.5 kB / 394.7 MB, free: 1.812 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009504/0.2637, allocations: 492.8 kB / 395.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.2638, allocations: 0 / 395.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002135/0.2659, allocations: 0.8093 MB / 396 MB, free: 1.227 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.2659, allocations: 33.5 kB / 396 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.266, allocations: 4.594 kB / 396 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009309/0.2669, allocations: 221 kB / 396.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006776/0.2676, allocations: 131.1 kB / 396.4 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006969/0.2746, allocations: 5.608 MB / 402 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007612/0.2753, allocations: 84.12 kB / 402 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/0.2754, allocations: 20.77 kB / 402.1 MB, free: 12.17 MB / 334.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.0003071/0.2757, allocations: 194.2 kB / 402.3 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.2758, allocations: 72.33 kB / 402.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002253/0.2781, allocations: 0.7772 MB / 403.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.2781, allocations: 5.5 kB / 403.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2781, allocations: 4.828 kB / 403.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002062/0.2802, allocations: 1.043 MB / 404.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00311/0.2833, allocations: 1.505 MB / 405.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2833, allocations: 3.938 kB / 405.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007132/0.2841, allocations: 125.4 kB / 405.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007962/0.2849, allocations: 181 kB / 406 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.753e-05/0.2849, allocations: 14.88 kB / 406 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004991/0.2899, allocations: 3.796 MB / 409.8 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2899, allocations: 0 / 409.8 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002706/0.2926, allocations: 1.073 MB / 410.8 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003291/0.293, allocations: 206.5 kB / 411 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.2931, allocations: 14.66 kB / 411.1 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005079/0.2936, allocations: 37.34 kB / 411.1 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.2938, allocations: 46.97 kB / 411.1 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.503e-05/0.2938, allocations: 18.05 kB / 411.2 MB, free: 5.527 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004636/0.2943, allocations: 385.5 kB / 411.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2943, allocations: 0 / 411.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007738/0.2951, allocations: 223.6 kB / 411.8 MB, free: 5.27 MB / 334.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.003009/0.2981, allocations: 1.628 MB / 413.4 MB, free: 4.105 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002301/0.3004, allocations: 1.039 MB / 414.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.3004, allocations: 3.031 kB / 414.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009562/0.3014, allocations: 0.5355 MB / 415 MB, free: 3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009018/0.3023, allocations: 201.4 kB / 415.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.3132, allocations: 6.057 MB / 421.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006387/0.3138, allocations: 0.8956 MB / 422.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003521/0.3142, allocations: 77.14 kB / 422.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.3145, allocations: 231.4 kB / 422.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3145, allocations: 0 / 422.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0503/0.3648, allocations: 20.18 MB / 442.6 MB, free: 8.895 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/13.59, allocations: 4 kB / 442.6 MB, free: 8.891 MB / 366.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