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.001023/0.001023, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.0009751/0.0009752, allocations: 183 kB / 18.66 MB, free: 4.414 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.378/1.378, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001242/0.001242, allocations: 56.39 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.0913, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005573/0.09692, allocations: 4.357 MB / 379 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1947/0.2916, allocations: 1.254 MB / 380.3 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004252/0.2921, allocations: 6.625 kB / 380.3 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004245/0.2926, allocations: 135.5 kB / 380.4 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005602/0.2931, allocations: 270.8 kB / 380.7 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004363/0.2936, allocations: 191 kB / 380.8 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009006/0.2945, allocations: 0.9326 MB / 381.8 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003568/0.2948, allocations: 247.2 kB / 382 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005421/0.2954, allocations: 365.6 kB / 382.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005256/0.2959, allocations: 408.1 kB / 382.8 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001565/0.2961, allocations: 80.62 kB / 382.9 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.2963, allocations: 77.03 kB / 382.9 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.2964, allocations: 170.4 kB / 383.1 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003813/0.2968, allocations: 413.7 kB / 383.5 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009599/0.2978, allocations: 0.92 MB / 384.4 MB, free: 8.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2978, allocations: 2.281 kB / 384.4 MB, free: 8.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2978, allocations: 0 / 384.4 MB, free: 8.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.2978, 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.001893/0.2997, allocations: 1.112 MB / 385.5 MB, free: 7.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.2997, allocations: 9.938 kB / 385.5 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001308/0.2999, allocations: 100.8 kB / 385.6 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.3001, allocations: 86.28 kB / 385.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007779/0.3009, allocations: 478 kB / 386.2 MB, free: 7 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.301, allocations: 101.2 kB / 386.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.911e-05/0.3011, allocations: 47.67 kB / 386.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.3022, allocations: 0.6568 MB / 387 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.3022, allocations: 1.344 kB / 387 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.235e-05/0.3023, allocations: 26.72 kB / 387 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.3023, allocations: 12.14 kB / 387 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.3034, allocations: 451.5 kB / 387.5 MB, free: 6.348 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.003148/0.3066, allocations: 1.97 MB / 389.4 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001907/0.3085, allocations: 0.6838 MB / 390.1 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005299/0.309, allocations: 263.1 kB / 390.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.337e-05/0.3091, allocations: 12.48 kB / 390.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.3091, allocations: 44.78 kB / 390.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.094e-06/0.3091, allocations: 0 / 390.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.005066/0.3142, allocations: 1.477 MB / 391.9 MB, free: 4.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.3143, allocations: 0.5715 MB / 392.5 MB, free: 3.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006702/0.315, allocations: 0.5397 MB / 393 MB, free: 3.055 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.417e-05/0.3151, allocations: 39.48 kB / 393.1 MB, free: 3.016 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001811/0.3152, allocations: 292.6 kB / 393.4 MB, free: 2.777 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.3154, allocations: 185 kB / 393.5 MB, free: 2.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001861/0.3156, allocations: 113.3 kB / 393.6 MB, free: 2.574 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.56e-05/0.3157, allocations: 376.3 kB / 394 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005037/0.3162, allocations: 189.9 kB / 394.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006812/0.3169, allocations: 431.9 kB / 394.6 MB, free: 1.852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.318, allocations: 487.8 kB / 395.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.318, allocations: 1.156 kB / 395.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002445/0.3204, allocations: 0.8083 MB / 395.9 MB, free: 1.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.149e-05/0.3205, allocations: 37.64 kB / 395.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.3205, allocations: 1.281 kB / 395.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.3216, allocations: 226.5 kB / 396.2 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007299/0.3223, allocations: 127.2 kB / 396.3 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007733/0.33, allocations: 5.597 MB / 401.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009377/0.331, allocations: 88.45 kB / 402 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.854e-05/0.3311, allocations: 18.06 kB / 402 MB, free: 12.22 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.0003873/0.3315, allocations: 191.5 kB / 402.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.3316, allocations: 67.97 kB / 402.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002326/0.334, allocations: 0.7857 MB / 403 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.334, allocations: 9.438 kB / 403 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.334, allocations: 0 / 403 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002318/0.3363, allocations: 1.039 MB / 404.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00342/0.3397, allocations: 1.506 MB / 405.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3398, allocations: 0 / 405.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007493/0.3405, allocations: 127.3 kB / 405.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008202/0.3413, allocations: 177.2 kB / 405.9 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.787e-05/0.3414, allocations: 10.53 kB / 405.9 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005232/0.3466, allocations: 3.802 MB / 409.7 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.3467, allocations: 3.938 kB / 409.7 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002846/0.3495, allocations: 1.06 MB / 410.8 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003723/0.3499, allocations: 207.2 kB / 411 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.53e-05/0.35, allocations: 12.62 kB / 411 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005085/0.3505, allocations: 41.44 kB / 411 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.3507, allocations: 42.44 kB / 411.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.3507, allocations: 19.8 kB / 411.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005231/0.3512, allocations: 385.2 kB / 411.4 MB, free: 5.367 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3512, allocations: 0 / 411.4 MB, free: 5.367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008561/0.3521, allocations: 219.5 kB / 411.7 MB, free: 5.336 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.003331/0.3554, allocations: 1.629 MB / 413.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002424/0.3579, allocations: 1.04 MB / 414.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.3579, allocations: 1.031 kB / 414.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.3589, allocations: 0.5329 MB / 414.9 MB, free: 3.066 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000925/0.3598, allocations: 192.7 kB / 415.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.3708, allocations: 6.044 MB / 421.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006477/0.3715, allocations: 0.8918 MB / 422 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005072/0.372, allocations: 73.14 kB / 422.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003384/0.3724, allocations: 231.4 kB / 422.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3724, allocations: 0 / 422.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05402/0.4264, allocations: 20.18 MB / 442.5 MB, free: 8.992 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.38, allocations: 7.938 kB / 442.5 MB, free: 8.984 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