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.001381/0.001381, allocations: 113.9 kB / 17.07 MB, free: 5.988 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.001545/0.001545, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.372/1.372, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 43.94 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2677, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.00536/0.2732, allocations: 4.378 MB / 404.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.2755, allocations: 1.211 MB / 405.8 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002938/0.2759, allocations: 4 kB / 405.8 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003621/0.2762, allocations: 138.8 kB / 406 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000548/0.2768, allocations: 273.8 kB / 406.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004412/0.2773, allocations: 199.7 kB / 406.4 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009788/0.2783, allocations: 0.9285 MB / 407.3 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003696/0.2787, allocations: 236.6 kB / 407.6 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004548/0.2791, allocations: 370.7 kB / 407.9 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004137/0.2795, allocations: 402.3 kB / 408.3 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.2797, allocations: 76 kB / 408.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.2798, allocations: 79.94 kB / 408.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001346/0.2799, allocations: 175.3 kB / 408.7 MB, free: 340 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003807/0.2803, allocations: 414.1 kB / 409.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009845/0.2813, allocations: 0.925 MB / 410 MB, free: 14.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2813, allocations: 4 kB / 410 MB, free: 14.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2813, allocations: 0 / 410 MB, free: 14.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.2813, allocations: 0 / 410 MB, free: 14.98 MB / 334.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.001979/0.2833, allocations: 1.132 MB / 411.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.2834, allocations: 12.03 kB / 411.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001583/0.2835, allocations: 95.66 kB / 411.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.2837, allocations: 92.42 kB / 411.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000748/0.2845, allocations: 493.1 kB / 411.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.2846, allocations: 96.95 kB / 411.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.215e-05/0.2847, allocations: 48.38 kB / 411.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.2859, allocations: 0.6591 MB / 412.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.2859, allocations: 3.953 kB / 412.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.874e-05/0.286, allocations: 24 kB / 412.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.286, allocations: 15.94 kB / 412.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.2871, allocations: 455.7 kB / 413.1 MB, free: 11.68 MB / 334.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.003031/0.2901, allocations: 1.964 MB / 415 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/0.2921, allocations: 0.6874 MB / 415.7 MB, free: 8.879 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005749/0.2927, allocations: 256.7 kB / 416 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.447e-05/0.2927, allocations: 12.41 kB / 416 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.2928, allocations: 47 kB / 416 MB, free: 8.562 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.325e-06/0.2928, allocations: 4 kB / 416 MB, free: 8.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.005082/0.2979, allocations: 1.472 MB / 417.5 MB, free: 7.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002613/0.2982, allocations: 0.576 MB / 418.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006771/0.2988, allocations: 0.5382 MB / 418.6 MB, free: 5.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.288e-05/0.2989, allocations: 37.7 kB / 418.7 MB, free: 5.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002414/0.2992, allocations: 297.1 kB / 419 MB, free: 5.406 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001745/0.2994, allocations: 194.3 kB / 419.2 MB, free: 5.215 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002004/0.2996, allocations: 110.2 kB / 419.3 MB, free: 5.098 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.2997, allocations: 374.7 kB / 419.6 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005173/0.3003, allocations: 193 kB / 419.8 MB, free: 4.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007176/0.301, allocations: 417.8 kB / 420.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.3021, allocations: 488.5 kB / 420.7 MB, free: 3.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3021, allocations: 4 kB / 420.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002335/0.3045, allocations: 0.8071 MB / 421.5 MB, free: 2.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.222e-05/0.3045, allocations: 33.7 kB / 421.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.3045, allocations: 8.031 kB / 421.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.3056, allocations: 230.2 kB / 421.8 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007277/0.3063, allocations: 123.8 kB / 421.9 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007832/0.3141, allocations: 5.607 MB / 427.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007946/0.315, allocations: 87.58 kB / 427.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.412e-05/0.315, allocations: 16 kB / 427.6 MB, free: 12.2 MB / 350.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.0003123/0.3153, allocations: 189.8 kB / 427.8 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.3155, allocations: 75.52 kB / 427.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002288/0.3178, allocations: 0.7734 MB / 428.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.3178, allocations: 11.94 kB / 428.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.3178, allocations: 0 / 428.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00222/0.32, allocations: 1.035 MB / 429.7 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003303/0.3233, allocations: 1.517 MB / 431.2 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3234, allocations: 0 / 431.2 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007477/0.3241, allocations: 135.8 kB / 431.3 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008973/0.325, allocations: 173.5 kB / 431.5 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.267e-05/0.3251, allocations: 12 kB / 431.5 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005458/0.3305, allocations: 3.795 MB / 435.3 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3306, allocations: 3.938 kB / 435.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002802/0.3334, allocations: 1.071 MB / 436.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003823/0.3338, allocations: 208.5 kB / 436.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/0.3339, allocations: 12 kB / 436.6 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005476/0.3345, allocations: 35.91 kB / 436.6 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.3346, allocations: 52.48 kB / 436.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/0.3346, allocations: 16 kB / 436.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005308/0.3352, allocations: 382.8 kB / 437.1 MB, free: 2.191 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3352, allocations: 0 / 437.1 MB, free: 2.191 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007971/0.336, allocations: 223.8 kB / 437.3 MB, free: 1.973 MB / 350.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.003084/0.3391, allocations: 1.634 MB / 438.9 MB, free: 308 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002388/0.3415, allocations: 1.038 MB / 440 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3415, allocations: 4 kB / 440 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.3425, allocations: 0.5356 MB / 440.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008359/0.3434, allocations: 186.5 kB / 440.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.354, allocations: 6.063 MB / 446.8 MB, free: 8.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004704/0.3545, allocations: 0.8918 MB / 447.6 MB, free: 7.352 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003296/0.3548, allocations: 85.12 kB / 447.7 MB, free: 7.266 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003053/0.3552, allocations: 231.3 kB / 448 MB, free: 7.039 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3552, allocations: 3.938 kB / 448 MB, free: 7.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05021/0.4054, allocations: 20.19 MB / 468.1 MB, free: 3.199 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/13.1, allocations: 7.984 kB / 468.2 MB, free: 3.191 MB / 382.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