Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001233/0.001233, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 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.001998/0.001998, allocations: 211 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.432/1.432, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 47.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2447, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005843/0.2506, allocations: 4.38 MB / 435.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002216/0.2528, allocations: 1.324 MB / 436.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002219/0.253, allocations: 11.94 kB / 436.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003485/0.2534, allocations: 150.7 kB / 436.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006337/0.254, allocations: 341.3 kB / 437.3 MB, free: 440 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004223/0.2544, allocations: 219.6 kB / 437.5 MB, free: 220 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001064/0.2555, allocations: 1.033 MB / 438.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003204/0.2558, allocations: 210.4 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005135/0.2563, allocations: 422.5 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005438/0.2569, allocations: 450.1 kB / 439.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.257, allocations: 88 kB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.2571, allocations: 88 kB / 439.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.2573, allocations: 199.3 kB / 439.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004096/0.2577, allocations: 394.3 kB / 440.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.2588, allocations: 1.09 MB / 441.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2588, allocations: 4 kB / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2588, allocations: 0 / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.2588, allocations: 0 / 441.4 MB, free: 12.25 MB / 350.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.002207/0.261, allocations: 1.172 MB / 442.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.2611, allocations: 12.03 kB / 442.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001598/0.2612, allocations: 99.95 kB / 442.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.2614, allocations: 104.3 kB / 442.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008053/0.2622, allocations: 471.3 kB / 443.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.2624, allocations: 160.6 kB / 443.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.242e-05/0.2625, allocations: 52.38 kB / 443.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/0.2642, allocations: 1.57 MB / 445 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.2642, allocations: 0 / 445 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.655e-05/0.2643, allocations: 24 kB / 445.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.2643, allocations: 16 kB / 445.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.2655, allocations: 0.5047 MB / 445.6 MB, free: 7.691 MB / 350.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.00319/0.2687, allocations: 1.769 MB / 447.3 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.2699, allocations: 491.2 kB / 447.8 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005784/0.2705, allocations: 230.2 kB / 448.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.133e-05/0.2706, allocations: 12.42 kB / 448.1 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007626/0.2713, allocations: 338 kB / 448.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 1.974e-06/0.2713, allocations: 0 / 448.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004952/0.2763, allocations: 1.325 MB / 449.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004402/0.2767, allocations: 0.8193 MB / 450.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007572/0.2775, allocations: 0.594 MB / 451.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.64e-05/0.2776, allocations: 45.7 kB / 451.2 MB, free: 1.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000305/0.2779, allocations: 345.1 kB / 451.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.278, allocations: 194.3 kB / 451.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002856/0.2783, allocations: 134.3 kB / 451.8 MB, free: 1.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.2785, allocations: 382.8 kB / 452.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005975/0.2791, allocations: 264.6 kB / 452.5 MB, free: 436 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001265/0.2804, allocations: 1.329 MB / 453.8 MB, free: 14.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.2816, allocations: 0.5641 MB / 454.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.2816, allocations: 0 / 454.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002301/0.2839, allocations: 0.9543 MB / 455.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.124e-05/0.2839, allocations: 63.39 kB / 455.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.2839, allocations: 0 / 455.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007367/0.2847, allocations: 229.5 kB / 455.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006388/0.2853, allocations: 111.8 kB / 455.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006653/0.292, allocations: 4.339 MB / 460 MB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007286/0.2927, allocations: 83.56 kB / 460.1 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.71e-05/0.2927, allocations: 20 kB / 460.2 MB, free: 8.094 MB / 366.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.000334/0.2931, allocations: 228.4 kB / 460.4 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.2932, allocations: 87.45 kB / 460.5 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.2933, allocations: 74.86 kB / 460.5 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.2934, allocations: 8 kB / 460.5 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2934, allocations: 0 / 460.5 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002176/0.2955, allocations: 1.037 MB / 461.6 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0027/0.2982, allocations: 1.397 MB / 463 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2982, allocations: 0 / 463 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006366/0.2989, allocations: 107.9 kB / 463.1 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005495/0.2994, allocations: 177.5 kB / 463.3 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.912e-05/0.2995, allocations: 8 kB / 463.3 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004991/0.3045, allocations: 3.691 MB / 467 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3045, allocations: 3.938 kB / 467 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.3068, allocations: 1.026 MB / 468 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003201/0.3071, allocations: 139.4 kB / 468.1 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.3072, allocations: 20 kB / 468.1 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006208/0.3078, allocations: 43.95 kB / 468.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.3079, allocations: 56.39 kB / 468.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.308, allocations: 8 kB / 468.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004999/0.3085, allocations: 423.2 kB / 468.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3085, allocations: 3.938 kB / 468.7 MB, free: 15.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007674/0.3092, allocations: 255.8 kB / 468.9 MB, free: 14.88 MB / 382.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.002721/0.312, allocations: 1.601 MB / 470.5 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.3142, allocations: 1.037 MB / 471.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.331e-06/0.3142, allocations: 4 kB / 471.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009685/0.3151, allocations: 0.52 MB / 472.1 MB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008784/0.316, allocations: 207 kB / 472.3 MB, free: 11.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.3264, allocations: 6.344 MB / 478.6 MB, free: 4.852 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.3268, allocations: 328.2 kB / 478.9 MB, free: 4.508 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003758/0.3271, allocations: 81.22 kB / 479 MB, free: 4.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003498/0.3275, allocations: 263.3 kB / 479.3 MB, free: 4.168 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3275, allocations: 0 / 479.3 MB, free: 4.168 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06399/0.3915, allocations: 25.07 MB / 0.4925 GB, free: 11.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13, allocations: 9.5 kB / 0.4925 GB, free: 11.57 MB / 414.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.3743089659838]