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.00156/0.00156, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.00174/0.00174, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.411/1.411, 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.001343/0.001343, allocations: 51.94 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09372/0.09507, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.006631/0.1017, allocations: 4.377 MB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1915/0.2932, allocations: 1.248 MB / 380.3 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005381/0.2938, allocations: 7.688 kB / 380.3 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004945/0.2944, allocations: 135.2 kB / 380.4 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008165/0.2952, allocations: 277.2 kB / 380.7 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.2958, allocations: 198.5 kB / 380.9 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001199/0.297, allocations: 0.9318 MB / 381.8 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003942/0.2974, allocations: 249.1 kB / 382 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007085/0.2981, allocations: 369.2 kB / 382.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00074/0.2989, allocations: 395.9 kB / 382.8 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002319/0.2991, allocations: 79.17 kB / 382.9 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00025/0.2994, allocations: 81.94 kB / 382.9 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.2995, allocations: 174 kB / 383.1 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004067/0.2999, allocations: 411.1 kB / 383.5 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009676/0.3009, allocations: 0.9256 MB / 384.4 MB, free: 8.273 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.3009, allocations: 5.25 kB / 384.4 MB, free: 8.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3009, allocations: 0 / 384.4 MB, free: 8.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.3009, allocations: 0 / 384.4 MB, free: 8.27 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.001886/0.3028, allocations: 1.129 MB / 385.6 MB, free: 7.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3029, allocations: 15.45 kB / 385.6 MB, free: 7.449 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001286/0.303, allocations: 95.89 kB / 385.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.3032, allocations: 93.11 kB / 385.8 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006522/0.3038, allocations: 485.5 kB / 386.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.304, allocations: 96.3 kB / 386.3 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.817e-05/0.3041, allocations: 49.09 kB / 386.4 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.3051, allocations: 0.6607 MB / 387 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.3052, allocations: 1.031 kB / 387.1 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.163e-05/0.3052, allocations: 22.75 kB / 387.1 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.3052, allocations: 15.19 kB / 387.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.3063, allocations: 451.4 kB / 387.5 MB, free: 6.316 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.002907/0.3092, allocations: 1.974 MB / 389.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.3111, allocations: 0.6854 MB / 390.2 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005582/0.3117, allocations: 264.7 kB / 390.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.531e-05/0.3117, allocations: 14.66 kB / 390.5 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.3117, allocations: 46.97 kB / 390.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.776e-06/0.3118, allocations: 0 / 390.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.004947/0.3167, allocations: 1.478 MB / 392 MB, free: 3.961 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.3168, allocations: 0.5675 MB / 392.6 MB, free: 3.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006909/0.3175, allocations: 0.5402 MB / 393.1 MB, free: 3.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.089e-05/0.3176, allocations: 39.36 kB / 393.1 MB, free: 2.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.3178, allocations: 288.7 kB / 393.4 MB, free: 2.738 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.3179, allocations: 196.4 kB / 393.6 MB, free: 2.586 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.3181, allocations: 117.4 kB / 393.7 MB, free: 2.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.013e-05/0.3182, allocations: 376.1 kB / 394.1 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004981/0.3187, allocations: 192.2 kB / 394.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006152/0.3193, allocations: 425.5 kB / 394.7 MB, free: 1.805 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.3204, allocations: 490.1 kB / 395.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3204, allocations: 0.875 kB / 395.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002289/0.3227, allocations: 0.8125 MB / 396 MB, free: 1.223 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.3227, allocations: 33.2 kB / 396 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.3227, allocations: 1.531 kB / 396 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.3237, allocations: 221.9 kB / 396.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007383/0.3245, allocations: 128.2 kB / 396.4 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008095/0.3326, allocations: 5.6 MB / 402 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008931/0.3335, allocations: 86.64 kB / 402 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.742e-05/0.3336, allocations: 19.02 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.0003393/0.3339, allocations: 193.2 kB / 402.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.3341, allocations: 72.83 kB / 402.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002336/0.3364, allocations: 0.7792 MB / 403.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.3364, allocations: 9.438 kB / 403.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.3365, allocations: 1.375 kB / 403.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00221/0.3387, allocations: 1.044 MB / 404.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003584/0.3423, allocations: 1.505 MB / 405.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3423, allocations: 1.125 kB / 405.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007873/0.3431, allocations: 128.7 kB / 405.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009073/0.344, allocations: 175.3 kB / 406 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.114e-05/0.3441, allocations: 15.45 kB / 406 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005486/0.3496, allocations: 3.799 MB / 409.8 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.3496, allocations: 4.812 kB / 409.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003033/0.3526, allocations: 1.069 MB / 410.8 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004093/0.3531, allocations: 206.9 kB / 411 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.918e-05/0.3532, allocations: 12.59 kB / 411.1 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005163/0.3537, allocations: 45.48 kB / 411.1 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.3538, allocations: 43.88 kB / 411.1 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.3539, allocations: 13.38 kB / 411.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005318/0.3544, allocations: 385.5 kB / 411.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3544, allocations: 0 / 411.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008827/0.3553, allocations: 223.9 kB / 411.8 MB, free: 5.262 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.003201/0.3585, allocations: 1.631 MB / 413.4 MB, free: 4.094 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002495/0.361, allocations: 1.035 MB / 414.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.3611, allocations: 3.5 kB / 414.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.3621, allocations: 0.5357 MB / 415 MB, free: 2.992 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009238/0.363, allocations: 199.7 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.01045/0.3735, allocations: 6.053 MB / 421.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004542/0.374, allocations: 0.8918 MB / 422.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000361/0.3744, allocations: 81.12 kB / 422.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003006/0.3747, allocations: 227.4 kB / 422.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of SimCode: time 6.12e-07/0.3747, allocations: 0 / 422.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05074/0.4254, allocations: 20.19 MB / 442.6 MB, free: 8.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.26, allocations: 7.938 kB / 442.6 MB, free: 8.895 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