Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",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.001277/0.001277, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.00127/0.00127, allocations: 197.3 kB / 18.01 MB, free: 5.062 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.445/1.445, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.264, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006377/0.2705, allocations: 4.838 MB / 405.1 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.2731, allocations: 1.347 MB / 406.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002994/0.2734, allocations: 11.94 kB / 406.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004258/0.2739, allocations: 154.7 kB / 406.6 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006932/0.2746, allocations: 337.4 kB / 406.9 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004901/0.2751, allocations: 219.6 kB / 407.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001104/0.2763, allocations: 1.022 MB / 408.1 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004116/0.2767, allocations: 289.9 kB / 408.4 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004919/0.2772, allocations: 402.6 kB / 408.8 MB, free: 184 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005385/0.2777, allocations: 454.2 kB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001354/0.2779, allocations: 88 kB / 409.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001639/0.278, allocations: 88 kB / 409.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.2782, allocations: 195.3 kB / 409.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00046/0.2787, allocations: 485.8 kB / 410.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.2798, allocations: 1.077 MB / 411.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2799, allocations: 0 / 411.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2799, allocations: 0 / 411.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.2799, allocations: 0 / 411.2 MB, free: 13.81 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.00227/0.2822, allocations: 1.243 MB / 412.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.2822, allocations: 8.031 kB / 412.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.2824, allocations: 119.9 kB / 412.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.2826, allocations: 104.3 kB / 412.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007734/0.2833, allocations: 0.5168 MB / 413.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001522/0.2835, allocations: 109.2 kB / 413.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.584e-05/0.2836, allocations: 52.38 kB / 413.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.285, allocations: 0.8126 MB / 414.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.285, allocations: 4 kB / 414.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.771e-05/0.2851, allocations: 28 kB / 414.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.2851, allocations: 12 kB / 414.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.2864, allocations: 0.5048 MB / 414.7 MB, free: 10.07 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.003413/0.2898, allocations: 2.171 MB / 416.9 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.2911, allocations: 0.5424 MB / 417.4 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006059/0.2917, allocations: 254.4 kB / 417.7 MB, free: 6.961 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.877e-05/0.2918, allocations: 20.61 kB / 417.7 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007805/0.2926, allocations: 326.9 kB / 418 MB, free: 6.613 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.895e-06/0.2926, allocations: 0 / 418 MB, free: 6.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005093/0.2977, allocations: 1.493 MB / 419.5 MB, free: 5.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000456/0.2982, allocations: 0.8233 MB / 420.3 MB, free: 4.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007642/0.299, allocations: 0.594 MB / 420.9 MB, free: 3.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.507e-05/0.299, allocations: 41.7 kB / 420.9 MB, free: 3.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00029/0.2993, allocations: 345.1 kB / 421.3 MB, free: 3.055 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.2995, allocations: 206.3 kB / 421.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002163/0.2998, allocations: 134.2 kB / 421.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.3, allocations: 374.8 kB / 422 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005779/0.3005, allocations: 209 kB / 422.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008778/0.3014, allocations: 0.5208 MB / 422.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.3027, allocations: 0.5614 MB / 423.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3027, allocations: 3.938 kB / 423.3 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002312/0.305, allocations: 0.9017 MB / 424.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.569e-05/0.3051, allocations: 59.41 kB / 424.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3051, allocations: 4 kB / 424.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000717/0.3058, allocations: 221.5 kB / 424.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000619/0.3064, allocations: 123.8 kB / 424.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006809/0.3132, allocations: 4.595 MB / 429.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008102/0.3141, allocations: 83.58 kB / 429.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.697e-05/0.3141, allocations: 24 kB / 429.3 MB, free: 10.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * 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: 2 * 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 {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0003427/0.3145, allocations: 209.8 kB / 429.5 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.3146, allocations: 83.47 kB / 429.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001493/0.3148, allocations: 78.86 kB / 429.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.3148, allocations: 4 kB / 429.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3148, allocations: 0 / 429.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00215/0.3169, allocations: 1.058 MB / 430.7 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002738/0.3197, allocations: 1.532 MB / 432.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3197, allocations: 0 / 432.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006083/0.3203, allocations: 111.9 kB / 432.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005753/0.3209, allocations: 181.4 kB / 432.5 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.551e-05/0.321, allocations: 8 kB / 432.5 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005303/0.3263, allocations: 3.932 MB / 436.5 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3263, allocations: 0 / 436.5 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002441/0.3287, allocations: 1.028 MB / 437.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003472/0.3291, allocations: 216.5 kB / 437.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.623e-05/0.3292, allocations: 16 kB / 437.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005763/0.3298, allocations: 43.95 kB / 437.7 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.33, allocations: 52.59 kB / 437.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.602e-05/0.33, allocations: 19.94 kB / 437.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005394/0.3305, allocations: 423.1 kB / 438.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3306, allocations: 0 / 438.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007958/0.3314, allocations: 259.7 kB / 438.5 MB, free: 0.8164 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002808/0.3342, allocations: 1.592 MB / 440.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00232/0.3365, allocations: 1.027 MB / 441.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.3365, allocations: 4 kB / 441.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.3376, allocations: 0.5555 MB / 441.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009142/0.3386, allocations: 214.6 kB / 441.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/0.3495, allocations: 6.143 MB / 448 MB, free: 7.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006206/0.3502, allocations: 0.916 MB / 448.9 MB, free: 6.074 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004193/0.3506, allocations: 85.22 kB / 449 MB, free: 5.988 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003684/0.351, allocations: 259.3 kB / 449.3 MB, free: 5.734 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.351, allocations: 0 / 449.3 MB, free: 5.734 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0893/0.4403, allocations: 22.76 MB / 472 MB, free: 15.37 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.36, allocations: 22.36 kB / 472 MB, free: 15.36 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches