Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001345/0.001345, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001495/0.001495, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 63.45 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.08731, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005708/0.09306, allocations: 4.369 MB / 362 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.09556, allocations: 1.258 MB / 363.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004616/0.09604, allocations: 7.938 kB / 363.2 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004822/0.09658, allocations: 134.8 kB / 363.4 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008182/0.09741, allocations: 261.8 kB / 363.6 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005827/0.09801, allocations: 195.6 kB / 363.8 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00121/0.09923, allocations: 0.9259 MB / 364.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003856/0.09963, allocations: 240.8 kB / 365 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005673/0.1002, allocations: 374.6 kB / 365.3 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005707/0.1008, allocations: 394.4 kB / 365.7 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001731/0.101, allocations: 76 kB / 365.8 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002286/0.1012, allocations: 83.98 kB / 365.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001639/0.1014, allocations: 175.3 kB / 366 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004472/0.1018, allocations: 414.1 kB / 366.4 MB, free: 5.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008733/0.1027, allocations: 0.911 MB / 367.4 MB, free: 4.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.1027, allocations: 0 / 367.4 MB, free: 4.184 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1027, allocations: 0 / 367.4 MB, free: 4.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.659e-05/0.1028, allocations: 8 kB / 367.4 MB, free: 4.176 MB / 302.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.002191/0.105, allocations: 1.105 MB / 368.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.105, allocations: 8.031 kB / 368.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001531/0.1052, allocations: 103.5 kB / 368.6 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002712/0.1055, allocations: 88 kB / 368.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007067/0.1062, allocations: 484.5 kB / 369.1 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.1063, allocations: 112.9 kB / 369.2 MB, free: 2.164 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.103e-05/0.1064, allocations: 44.38 kB / 369.3 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.1075, allocations: 0.6592 MB / 369.9 MB, free: 1.383 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.1076, allocations: 0 / 369.9 MB, free: 1.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.257e-05/0.1076, allocations: 20 kB / 370 MB, free: 1.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.1076, allocations: 12 kB / 370 MB, free: 1.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.1087, allocations: 451.7 kB / 370.4 MB, free: 0.9141 MB / 302.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.1465/0.2552, allocations: 1.963 MB / 372.4 MB, free: 19.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.2571, allocations: 0.6815 MB / 373.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005566/0.2576, allocations: 272.2 kB / 373.3 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.442e-05/0.2577, allocations: 13.56 kB / 373.3 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.2577, allocations: 44.56 kB / 373.4 MB, free: 18.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.415e-06/0.2577, allocations: 0 / 373.4 MB, free: 18.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.004898/0.2626, allocations: 1.475 MB / 374.9 MB, free: 18.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.2628, allocations: 0.5655 MB / 375.4 MB, free: 17.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005783/0.2633, allocations: 0.5403 MB / 376 MB, free: 17.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.558e-05/0.2634, allocations: 38.73 kB / 376 MB, free: 17.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.2636, allocations: 289.5 kB / 376.3 MB, free: 17.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.2637, allocations: 190.2 kB / 376.5 MB, free: 17.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.2639, allocations: 111.1 kB / 376.6 MB, free: 17.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.082e-05/0.2639, allocations: 376 kB / 376.9 MB, free: 16.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004633/0.2644, allocations: 195.1 kB / 377.1 MB, free: 16.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005863/0.265, allocations: 417.8 kB / 377.5 MB, free: 16.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000979/0.266, allocations: 491.4 kB / 378 MB, free: 16.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.266, allocations: 1.281 kB / 378 MB, free: 16.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002153/0.2682, allocations: 0.8055 MB / 378.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.2682, allocations: 39.95 kB / 378.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2682, allocations: 1.156 kB / 378.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/0.2692, allocations: 220.4 kB / 379.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007305/0.27, allocations: 130.2 kB / 379.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006365/0.2763, allocations: 5.617 MB / 384.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006778/0.277, allocations: 73.23 kB / 384.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.036e-05/0.2771, allocations: 22.62 kB / 384.9 MB, free: 10.86 MB / 302.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.000248/0.2773, allocations: 194.9 kB / 385.1 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.2775, allocations: 68.56 kB / 385.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002243/0.2797, allocations: 0.7726 MB / 386 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.2797, allocations: 5.5 kB / 386 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.2797, allocations: 0.8438 kB / 386 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002056/0.2818, allocations: 1.049 MB / 387 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/0.2848, allocations: 1.506 MB / 388.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.2848, allocations: 0 / 388.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007571/0.2856, allocations: 132.2 kB / 388.6 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008343/0.2865, allocations: 177.3 kB / 388.8 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.439e-05/0.2865, allocations: 9.266 kB / 388.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004556/0.2911, allocations: 3.805 MB / 392.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2911, allocations: 0 / 392.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002916/0.294, allocations: 1.071 MB / 393.7 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002755/0.2943, allocations: 204.2 kB / 393.9 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.339e-05/0.2944, allocations: 20.34 kB / 393.9 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005108/0.2949, allocations: 36.03 kB / 394 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.295, allocations: 50.62 kB / 394 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.128e-05/0.2951, allocations: 12.97 kB / 394 MB, free: 4.777 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004077/0.2955, allocations: 385.2 kB / 394.4 MB, free: 4.602 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2955, allocations: 0 / 394.4 MB, free: 4.602 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007629/0.2963, allocations: 220.2 kB / 394.6 MB, free: 4.57 MB / 302.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.002872/0.2991, allocations: 1.628 MB / 396.2 MB, free: 3.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002254/0.3014, allocations: 1.047 MB / 397.3 MB, free: 2.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3014, allocations: 5.438 kB / 397.3 MB, free: 2.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008942/0.3023, allocations: 0.5305 MB / 397.8 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008017/0.3031, allocations: 193 kB / 398 MB, free: 2.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009582/0.3127, allocations: 6.326 MB / 404.3 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004459/0.3132, allocations: 0.8926 MB / 405.2 MB, free: 13.46 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003712/0.3136, allocations: 81.44 kB / 405.3 MB, free: 13.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002993/0.3139, allocations: 231.4 kB / 405.5 MB, free: 13.2 MB / 318.1 MB Notification: Performance of SimCode: time 1.904e-06/0.3139, allocations: 0 / 405.5 MB, free: 13.2 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05278/0.3667, allocations: 19.9 MB / 425.4 MB, free: 9.625 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.02, allocations: 15.91 kB / 425.5 MB, free: 9.609 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches