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.001755/0.001755, allocations: 113.3 kB / 17.06 MB, free: 5.965 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.001838/0.001838, allocations: 197.3 kB / 18.01 MB, free: 5.047 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.378/1.378, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 51.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2528, allocations: 49.44 MB / 400.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005795/0.2587, allocations: 4.369 MB / 404.6 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002303/0.261, allocations: 1.207 MB / 405.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002812/0.2613, allocations: 8 kB / 405.8 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000419/0.2617, allocations: 142.8 kB / 406 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005606/0.2623, allocations: 265.8 kB / 406.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004517/0.2628, allocations: 199.6 kB / 406.4 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000999/0.2638, allocations: 0.9241 MB / 407.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003611/0.2642, allocations: 244.5 kB / 407.6 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004175/0.2646, allocations: 354.7 kB / 407.9 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004838/0.2651, allocations: 414.2 kB / 408.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.2652, allocations: 76 kB / 408.4 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.2654, allocations: 80 kB / 408.5 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.2655, allocations: 171.4 kB / 408.6 MB, free: 332 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004127/0.266, allocations: 426.1 kB / 409.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009605/0.2669, allocations: 0.9172 MB / 410 MB, free: 14.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2669, allocations: 0 / 410 MB, free: 14.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.267, allocations: 0 / 410 MB, free: 14.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.416e-05/0.267, allocations: 0 / 410 MB, free: 14.99 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.002052/0.269, allocations: 1.128 MB / 411.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.2691, allocations: 16.03 kB / 411.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001477/0.2692, allocations: 95.66 kB / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.2694, allocations: 92.42 kB / 411.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007375/0.2701, allocations: 489.1 kB / 411.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001608/0.2703, allocations: 105 kB / 411.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.003e-05/0.2704, allocations: 44.38 kB / 411.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.2716, allocations: 0.6631 MB / 412.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.2716, allocations: 7.938 kB / 412.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.337e-05/0.2717, allocations: 28 kB / 412.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/0.2717, allocations: 12 kB / 412.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.2728, allocations: 447.7 kB / 413.1 MB, free: 11.69 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.003015/0.2758, allocations: 1.964 MB / 415 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.2778, allocations: 0.687 MB / 415.7 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005809/0.2783, allocations: 266 kB / 416 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.668e-05/0.2784, allocations: 8.438 kB / 416 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.557e-05/0.2784, allocations: 46.98 kB / 416 MB, free: 8.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.074e-06/0.2785, allocations: 0 / 416 MB, free: 8.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.004992/0.2835, allocations: 1.488 MB / 417.5 MB, free: 7.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003252/0.2838, allocations: 0.5605 MB / 418.1 MB, free: 6.309 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006706/0.2845, allocations: 0.5382 MB / 418.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.288e-05/0.2845, allocations: 41.64 kB / 418.7 MB, free: 5.711 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/0.2848, allocations: 293.1 kB / 419 MB, free: 5.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.285, allocations: 198.3 kB / 419.1 MB, free: 5.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/0.2852, allocations: 114.2 kB / 419.3 MB, free: 5.098 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.2854, allocations: 374.7 kB / 419.6 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005217/0.2859, allocations: 189 kB / 419.8 MB, free: 4.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007384/0.2867, allocations: 420.3 kB / 420.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.2878, allocations: 488.5 kB / 420.7 MB, free: 3.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2878, allocations: 0 / 420.7 MB, free: 3.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002335/0.2901, allocations: 0.8188 MB / 421.5 MB, free: 2.715 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.2902, allocations: 29.7 kB / 421.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2902, allocations: 0 / 421.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009977/0.2912, allocations: 222.4 kB / 421.8 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007073/0.2919, allocations: 127.8 kB / 421.9 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007868/0.2998, allocations: 5.608 MB / 427.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006927/0.3005, allocations: 87.58 kB / 427.6 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.117e-05/0.3006, allocations: 16 kB / 427.6 MB, free: 12.21 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.0003036/0.3009, allocations: 195.2 kB / 427.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.301, allocations: 71.58 kB / 427.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002371/0.3034, allocations: 0.7695 MB / 428.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.3034, allocations: 12.12 kB / 428.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.3034, allocations: 0 / 428.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002245/0.3056, allocations: 1.042 MB / 429.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003275/0.3089, allocations: 1.509 MB / 431.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.309, allocations: 0 / 431.2 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007357/0.3097, allocations: 127.8 kB / 431.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008673/0.3106, allocations: 181.5 kB / 431.5 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.613e-05/0.3106, allocations: 11.98 kB / 431.5 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005311/0.3159, allocations: 3.791 MB / 435.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.316, allocations: 3.938 kB / 435.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00284/0.3188, allocations: 1.075 MB / 436.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002951/0.3191, allocations: 212.6 kB / 436.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.532e-05/0.3192, allocations: 12 kB / 436.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004981/0.3197, allocations: 43.89 kB / 436.6 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.3198, allocations: 44.5 kB / 436.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.334e-05/0.3199, allocations: 16 kB / 436.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000478/0.3204, allocations: 382.8 kB / 437.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3204, allocations: 0 / 437.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007179/0.3211, allocations: 223.8 kB / 437.3 MB, free: 1.98 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.003192/0.3243, allocations: 1.642 MB / 438.9 MB, free: 308 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002377/0.3267, allocations: 1.022 MB / 440 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.3267, allocations: 4 kB / 440 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.3277, allocations: 0.5511 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.0007827/0.3285, allocations: 178.3 kB / 440.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.3393, allocations: 6.067 MB / 446.7 MB, free: 8.273 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005448/0.3399, allocations: 0.8879 MB / 447.6 MB, free: 7.359 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000354/0.3403, allocations: 81.12 kB / 447.7 MB, free: 7.277 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003253/0.3406, allocations: 235.3 kB / 447.9 MB, free: 7.047 MB / 366.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3406, allocations: 0 / 447.9 MB, free: 7.047 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05468/0.3953, allocations: 20.19 MB / 468.1 MB, free: 3.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.52, allocations: 0 / 468.1 MB, free: 3.203 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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