Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001378/0.001378, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 55.91 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2531, allocations: 50.56 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00632/0.2595, allocations: 4.835 MB / 413.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002692/0.2622, allocations: 1.386 MB / 415.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003568/0.2626, allocations: 11.94 kB / 415.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004219/0.263, allocations: 154.7 kB / 415.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007618/0.2639, allocations: 337.3 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005068/0.2644, allocations: 215.6 kB / 415.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001251/0.2656, allocations: 1.023 MB / 416.8 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004739/0.2661, allocations: 297.9 kB / 417.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006822/0.2668, allocations: 414.5 kB / 417.5 MB, free: 8.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005755/0.2674, allocations: 454.1 kB / 417.9 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001515/0.2676, allocations: 88 kB / 418 MB, free: 8.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001639/0.2677, allocations: 88 kB / 418.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.2679, allocations: 195.3 kB / 418.3 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004932/0.2684, allocations: 473.9 kB / 418.7 MB, free: 7.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.2697, allocations: 1.081 MB / 419.8 MB, free: 6.414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2697, allocations: 4 kB / 419.8 MB, free: 6.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2697, allocations: 0 / 419.8 MB, free: 6.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.749e-05/0.2698, allocations: 0 / 419.8 MB, free: 6.41 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.002392/0.2722, allocations: 1.247 MB / 421.1 MB, free: 5.098 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.2722, allocations: 8.031 kB / 421.1 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001701/0.2724, allocations: 108 kB / 421.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001789/0.2726, allocations: 104.3 kB / 421.3 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008738/0.2735, allocations: 0.5284 MB / 421.8 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/0.2736, allocations: 105.3 kB / 421.9 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.654e-05/0.2737, allocations: 52.38 kB / 422 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.2752, allocations: 0.8049 MB / 422.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.2752, allocations: 4 kB / 422.8 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-05/0.2753, allocations: 28 kB / 422.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.2753, allocations: 16 kB / 422.8 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.2766, allocations: 0.5047 MB / 423.3 MB, free: 2.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.003661/0.2803, allocations: 2.171 MB / 425.5 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.2817, allocations: 0.5301 MB / 426 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006219/0.2823, allocations: 258.4 kB / 426.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.278e-05/0.2824, allocations: 20.7 kB / 426.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007918/0.2832, allocations: 326.9 kB / 426.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 3.657e-06/0.2832, allocations: 0 / 426.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.005209/0.2884, allocations: 1.478 MB / 428.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005/0.289, allocations: 0.831 MB / 428.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009052/0.2899, allocations: 0.5901 MB / 429.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.29, allocations: 41.7 kB / 429.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003363/0.2903, allocations: 353.1 kB / 429.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.2905, allocations: 194.3 kB / 430.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000231/0.2908, allocations: 134.2 kB / 430.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002059/0.291, allocations: 378.8 kB / 430.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000609/0.2916, allocations: 217 kB / 430.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008831/0.2925, allocations: 0.5169 MB / 431.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.2938, allocations: 0.5614 MB / 431.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2938, allocations: 3.938 kB / 431.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002396/0.2962, allocations: 0.9055 MB / 432.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.302e-05/0.2963, allocations: 63.41 kB / 432.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.2963, allocations: 0 / 432.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007409/0.297, allocations: 221.6 kB / 433.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006377/0.2977, allocations: 111.8 kB / 433.2 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007074/0.3048, allocations: 4.608 MB / 437.8 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008621/0.3057, allocations: 79.62 kB / 437.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.618e-05/0.3057, allocations: 23.98 kB / 437.9 MB, free: 3.184 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.0003709/0.3061, allocations: 217.8 kB / 438.1 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.3063, allocations: 87.42 kB / 438.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001583/0.3064, allocations: 78.86 kB / 438.3 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3064, allocations: 8 kB / 438.3 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3065, allocations: 0 / 438.3 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002251/0.3087, allocations: 1.046 MB / 439.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002971/0.3117, allocations: 1.555 MB / 440.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3117, allocations: 0 / 440.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006087/0.3123, allocations: 107.8 kB / 441 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005784/0.3129, allocations: 165.6 kB / 441.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.406e-05/0.313, allocations: 11.98 kB / 441.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005475/0.3185, allocations: 3.949 MB / 445.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3185, allocations: 4.031 kB / 445.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002591/0.3211, allocations: 1.024 MB / 446.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004699/0.3216, allocations: 220.4 kB / 446.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.926e-05/0.3217, allocations: 12.19 kB / 446.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005897/0.3223, allocations: 52.02 kB / 446.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.3225, allocations: 52.48 kB / 446.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.3226, allocations: 16 kB / 446.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005706/0.3231, allocations: 423.1 kB / 446.9 MB, free: 9.648 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3231, allocations: 0 / 446.9 MB, free: 9.648 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008133/0.324, allocations: 247.8 kB / 447.1 MB, free: 9.406 MB / 366.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.002894/0.3269, allocations: 1.596 MB / 448.7 MB, free: 7.773 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002189/0.3291, allocations: 1.023 MB / 449.8 MB, free: 6.699 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3291, allocations: 0 / 449.8 MB, free: 6.699 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.3301, allocations: 0.5394 MB / 450.3 MB, free: 6.137 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009719/0.3311, allocations: 215.3 kB / 450.5 MB, free: 5.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.3423, allocations: 6.144 MB / 456.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006793/0.343, allocations: 0.916 MB / 457.6 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004421/0.3435, allocations: 93.14 kB / 457.7 MB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003722/0.3439, allocations: 259.3 kB / 457.9 MB, free: 14.33 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3439, allocations: 0 / 457.9 MB, free: 14.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08016/0.424, allocations: 22.78 MB / 480.7 MB, free: 7.918 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.17, allocations: 10.62 kB / 480.7 MB, free: 7.91 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches