Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 53.8 kB / 347.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2726, allocations: 49.16 MB / 396.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005788/0.2784, allocations: 4.353 MB / 400.7 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002485/0.2809, allocations: 1.343 MB / 402 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000295/0.2812, allocations: 14.34 kB / 402.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004236/0.2816, allocations: 157.9 kB / 402.2 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007298/0.2824, allocations: 340.2 kB / 402.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005449/0.2829, allocations: 219.3 kB / 402.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.284, allocations: 1.029 MB / 403.8 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003397/0.2844, allocations: 196.7 kB / 404 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005351/0.2849, allocations: 413.1 kB / 404.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004546/0.2854, allocations: 394.9 kB / 404.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001341/0.2855, allocations: 88.75 kB / 404.9 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.2857, allocations: 89.38 kB / 404.9 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.2858, allocations: 196.6 kB / 405.1 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003769/0.2862, allocations: 395.4 kB / 405.5 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.2873, allocations: 1.096 MB / 406.6 MB, free: 2.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2873, allocations: 0 / 406.6 MB, free: 2.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2873, allocations: 0 / 406.6 MB, free: 2.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.2874, allocations: 0 / 406.6 MB, free: 2.809 MB / 318.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.001966/0.2893, allocations: 1.171 MB / 407.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.2894, allocations: 14.38 kB / 407.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000148/0.2895, allocations: 108.1 kB / 407.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.2897, allocations: 109.8 kB / 408 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007959/0.2905, allocations: 464.8 kB / 408.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.2906, allocations: 157.6 kB / 408.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.281e-05/0.2907, allocations: 51.41 kB / 408.7 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.2921, allocations: 1.563 MB / 410.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.2921, allocations: 7.938 kB / 410.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.679e-05/0.2922, allocations: 25.61 kB / 410.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.2922, allocations: 12.75 kB / 410.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/0.2935, allocations: 0.5032 MB / 410.8 MB, free: 15.75 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.003425/0.2969, allocations: 1.779 MB / 412.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.2982, allocations: 499.2 kB / 413 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005942/0.2988, allocations: 223.5 kB / 413.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-05/0.2989, allocations: 12.25 kB / 413.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007643/0.2996, allocations: 327.5 kB / 413.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 3.226e-06/0.2996, allocations: 0 / 413.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004931/0.3045, allocations: 1.325 MB / 414.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005037/0.3051, allocations: 0.8263 MB / 415.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008387/0.3059, allocations: 0.5924 MB / 416.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.015e-05/0.306, allocations: 41.14 kB / 416.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003647/0.3063, allocations: 343.3 kB / 416.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.3066, allocations: 206.7 kB / 416.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.3068, allocations: 130.3 kB / 417 MB, free: 11.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.307, allocations: 377.6 kB / 417.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006574/0.3076, allocations: 267.3 kB / 417.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.309, allocations: 1.329 MB / 419 MB, free: 9.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.3103, allocations: 0.5697 MB / 419.6 MB, free: 8.797 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3103, allocations: 1.375 kB / 419.6 MB, free: 8.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00239/0.3127, allocations: 0.9485 MB / 420.5 MB, free: 8.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.134e-05/0.3127, allocations: 58.97 kB / 420.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3128, allocations: 1.812 kB / 420.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007591/0.3135, allocations: 222.1 kB / 420.8 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007142/0.3142, allocations: 119.7 kB / 420.9 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007388/0.3216, allocations: 4.324 MB / 425.2 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.3226, allocations: 96.92 kB / 425.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.658e-05/0.3227, allocations: 28.03 kB / 425.4 MB, free: 4.27 MB / 334.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.0004766/0.3232, allocations: 215.9 kB / 425.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.3233, allocations: 84.34 kB / 425.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001548/0.3235, allocations: 76.64 kB / 425.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3235, allocations: 6.438 kB / 425.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.3235, allocations: 112 / 425.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002245/0.3257, allocations: 1.05 MB / 426.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.3286, allocations: 1.383 MB / 428.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3286, allocations: 0 / 428.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005975/0.3292, allocations: 107.9 kB / 428.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005796/0.3297, allocations: 169.5 kB / 428.4 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.883e-05/0.3298, allocations: 12 kB / 428.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005361/0.3351, allocations: 3.706 MB / 432.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3351, allocations: 0 / 432.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002495/0.3376, allocations: 1.022 MB / 433.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004193/0.3381, allocations: 139.3 kB / 433.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.3382, allocations: 16 kB / 433.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005813/0.3387, allocations: 43.95 kB / 433.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.3389, allocations: 56.39 kB / 433.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-05/0.3389, allocations: 12 kB / 433.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000561/0.3395, allocations: 419.1 kB / 433.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3395, allocations: 0 / 433.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008523/0.3403, allocations: 259.8 kB / 434.1 MB, free: 11.5 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.002815/0.3431, allocations: 1.586 MB / 435.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002185/0.3453, allocations: 1.04 MB / 436.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/0.3453, allocations: 8 kB / 436.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.3464, allocations: 0.5278 MB / 437.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009114/0.3473, allocations: 212.6 kB / 437.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/0.3587, allocations: 6.345 MB / 443.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.3592, allocations: 324.2 kB / 444.1 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005304/0.3597, allocations: 89.2 kB / 444.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004645/0.3602, allocations: 263.3 kB / 444.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of SimCode: time 2.064e-06/0.3602, allocations: 0 / 444.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07361/0.4338, allocations: 24.87 MB / 469.4 MB, free: 7.773 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.33, allocations: 19.78 kB / 469.4 MB, free: 7.754 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.718521093018353]