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.001318/0.001318, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001239/0.001239, allocations: 193.4 kB / 18 MB, free: 5.172 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.407/1.407, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001522, allocations: 47.91 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2403, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005918/0.2462, allocations: 4.366 MB / 404.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002676/0.249, allocations: 1.219 MB / 405.8 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004081/0.2494, allocations: 4 kB / 405.8 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004252/0.2498, allocations: 134.8 kB / 406 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00064/0.2505, allocations: 269.7 kB / 406.2 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004981/0.251, allocations: 187.7 kB / 406.4 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.2522, allocations: 0.9336 MB / 407.3 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003772/0.2526, allocations: 236.6 kB / 407.6 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005217/0.2531, allocations: 370.7 kB / 407.9 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004923/0.2536, allocations: 402.3 kB / 408.3 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.2537, allocations: 76 kB / 408.4 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.2539, allocations: 76 kB / 408.5 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001636/0.2541, allocations: 171.3 kB / 408.6 MB, free: 368 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004262/0.2545, allocations: 414.3 kB / 409 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.2556, allocations: 0.9288 MB / 410 MB, free: 15.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2556, allocations: 4 kB / 410 MB, free: 15.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2556, allocations: 0 / 410 MB, free: 15.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.2556, allocations: 0 / 410 MB, free: 15.02 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.00212/0.2578, allocations: 1.128 MB / 411.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.2578, allocations: 11.97 kB / 411.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001544/0.258, allocations: 99.66 kB / 411.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.2581, allocations: 88.42 kB / 411.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008532/0.259, allocations: 489.1 kB / 411.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.2592, allocations: 105 kB / 411.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.489e-05/0.2593, allocations: 48.38 kB / 411.9 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.2605, allocations: 0.663 MB / 412.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.2605, allocations: 7.953 kB / 412.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.375e-05/0.2606, allocations: 20 kB / 412.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.2606, allocations: 8 kB / 412.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.2617, allocations: 451.7 kB / 413.1 MB, free: 11.72 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.003489/0.2652, allocations: 1.968 MB / 415 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002027/0.2673, allocations: 0.6831 MB / 415.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006108/0.2679, allocations: 262 kB / 416 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.301e-05/0.268, allocations: 16.41 kB / 416 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.268, allocations: 47 kB / 416 MB, free: 8.594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.725e-06/0.2681, allocations: 0 / 416 MB, free: 8.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.005386/0.2734, allocations: 1.48 MB / 417.5 MB, free: 7.039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003473/0.2738, allocations: 0.5644 MB / 418.1 MB, free: 6.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007567/0.2746, allocations: 0.5343 MB / 418.6 MB, free: 5.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.247e-05/0.2747, allocations: 45.7 kB / 418.7 MB, free: 5.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.275, allocations: 293.1 kB / 418.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/0.2752, allocations: 202.2 kB / 419.1 MB, free: 5.246 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002388/0.2754, allocations: 110.2 kB / 419.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.2756, allocations: 374.7 kB / 419.6 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005381/0.2762, allocations: 189 kB / 419.8 MB, free: 4.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000771/0.277, allocations: 420.3 kB / 420.2 MB, free: 4.082 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.2781, allocations: 484.6 kB / 420.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.207e-05/0.2781, allocations: 7.984 kB / 420.7 MB, free: 3.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.003078/0.2812, allocations: 0.811 MB / 421.5 MB, free: 2.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.19e-05/0.2813, allocations: 33.7 kB / 421.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.2813, allocations: 3.984 kB / 421.5 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.2824, allocations: 222.4 kB / 421.8 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008179/0.2832, allocations: 127.8 kB / 421.9 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009178/0.2924, allocations: 5.603 MB / 427.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.2936, allocations: 83.58 kB / 427.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.271e-05/0.2937, allocations: 20 kB / 427.6 MB, free: 12.24 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.0004676/0.2942, allocations: 191.3 kB / 427.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.2944, allocations: 71.58 kB / 427.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003535/0.2979, allocations: 0.7774 MB / 428.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.298, allocations: 7.938 kB / 428.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.298, allocations: 4 kB / 428.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003639/0.3017, allocations: 1.043 MB / 429.7 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005267/0.3069, allocations: 1.502 MB / 431.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.307, allocations: 3.938 kB / 431.2 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001174/0.3082, allocations: 128 kB / 431.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00132/0.3095, allocations: 185.7 kB / 431.5 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.153e-05/0.3096, allocations: 19.92 kB / 431.5 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008906/0.3185, allocations: 3.787 MB / 435.3 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.697e-06/0.3186, allocations: 12.09 kB / 435.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005021/0.3236, allocations: 1.071 MB / 436.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005512/0.3242, allocations: 208.5 kB / 436.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.3244, allocations: 15.98 kB / 436.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000726/0.3251, allocations: 35.91 kB / 436.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.3253, allocations: 44.5 kB / 436.7 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.512e-05/0.3254, allocations: 12 kB / 436.7 MB, free: 2.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006873/0.326, allocations: 390.8 kB / 437.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3261, allocations: 4 kB / 437.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001068/0.3271, allocations: 223.8 kB / 437.3 MB, free: 2.004 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.004008/0.3312, allocations: 1.631 MB / 438.9 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002544/0.3337, allocations: 1.034 MB / 440 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.984e-06/0.3338, allocations: 4 kB / 440 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.3349, allocations: 0.5356 MB / 440.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.3359, allocations: 186.4 kB / 440.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/0.3513, allocations: 6.069 MB / 446.7 MB, free: 8.305 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006292/0.352, allocations: 0.8879 MB / 447.6 MB, free: 7.391 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004358/0.3524, allocations: 81.12 kB / 447.7 MB, free: 7.309 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.3528, allocations: 235.3 kB / 447.9 MB, free: 7.078 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3528, allocations: 4 kB / 447.9 MB, free: 7.074 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0683/0.4211, allocations: 20.18 MB / 468.1 MB, free: 3.234 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/13.73, allocations: 3.938 kB / 468.1 MB, free: 3.23 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