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.001461/0.001461, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001655/0.001655, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.328/1.328, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 43.92 kB / 378.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2161, allocations: 53.36 MB / 431.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005863/0.222, allocations: 4.901 MB / 436.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.2242, allocations: 1.393 MB / 438.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000281/0.2245, allocations: 7.938 kB / 438.2 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003715/0.2249, allocations: 162.7 kB / 438.4 MB, free: 380 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000641/0.2255, allocations: 337.4 kB / 438.7 MB, free: 40 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004396/0.226, allocations: 223.6 kB / 438.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001025/0.227, allocations: 1.031 MB / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003053/0.2273, allocations: 198.4 kB / 440.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005093/0.2278, allocations: 426.5 kB / 440.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005312/0.2283, allocations: 458.1 kB / 441 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/0.2284, allocations: 84 kB / 441.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.2286, allocations: 92 kB / 441.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.2288, allocations: 199.3 kB / 441.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004308/0.2292, allocations: 473.9 kB / 441.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001061/0.2302, allocations: 1.079 MB / 442.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2302, allocations: 0 / 442.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2303, allocations: 0 / 442.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.2303, allocations: 4 kB / 442.9 MB, free: 11.8 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.002155/0.2324, allocations: 1.168 MB / 444.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.2325, allocations: 8.031 kB / 444.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.55e-05/0.2325, allocations: 21.45 kB / 444.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001575/0.2327, allocations: 115.9 kB / 444.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.2328, allocations: 104.4 kB / 444.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007766/0.2336, allocations: 483.2 kB / 444.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.2338, allocations: 156.7 kB / 445 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.788e-05/0.2339, allocations: 60.08 kB / 445 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.2352, allocations: 0.8213 MB / 445.8 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.2352, allocations: 0 / 445.8 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.357e-05/0.2353, allocations: 24 kB / 445.9 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.2353, allocations: 16 kB / 445.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.2366, allocations: 0.5203 MB / 446.4 MB, free: 8.109 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.003336/0.2399, allocations: 2.142 MB / 448.5 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.2411, allocations: 0.4928 MB / 449 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005968/0.2417, allocations: 269.7 kB / 449.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.55e-05/0.2417, allocations: 12.64 kB / 449.3 MB, free: 5.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007611/0.2425, allocations: 348.3 kB / 449.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.265e-06/0.2425, allocations: 0 / 449.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.008792/0.2513, allocations: 2.715 MB / 452.4 MB, free: 1.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004388/0.2517, allocations: 0.8276 MB / 453.2 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007596/0.2525, allocations: 0.5863 MB / 453.8 MB, free: 356 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001014/0.2526, allocations: 45.7 kB / 453.8 MB, free: 304 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/0.2529, allocations: 353.3 kB / 454.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002665/0.2531, allocations: 289.5 kB / 454.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002875/0.2534, allocations: 170.6 kB / 454.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.2536, allocations: 386.8 kB / 455 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009397/0.2546, allocations: 321.8 kB / 455.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.2558, allocations: 0.6582 MB / 456 MB, free: 14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001933/0.2577, allocations: 0.8043 MB / 456.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2577, allocations: 0 / 456.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003879/0.2616, allocations: 1.342 MB / 458.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.881e-05/0.2617, allocations: 59.41 kB / 458.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.2617, allocations: 0 / 458.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001732/0.2634, allocations: 450 kB / 458.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.2645, allocations: 187.8 kB / 458.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01105/0.2756, allocations: 6.751 MB / 465.5 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009351/0.2765, allocations: 87.78 kB / 465.6 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.681e-05/0.2766, allocations: 27.94 kB / 465.7 MB, free: 3.879 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 (65): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 2 * 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): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0003927/0.277, allocations: 232.4 kB / 465.9 MB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.2771, allocations: 95.44 kB / 466 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.2773, allocations: 91.97 kB / 466.1 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.2773, allocations: 8 kB / 466.1 MB, free: 3.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.2773, allocations: 4 kB / 466.1 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003217/0.2805, allocations: 1.397 MB / 467.5 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005645/0.2862, allocations: 2.308 MB / 469.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2862, allocations: 0 / 469.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.2872, allocations: 179.8 kB / 470 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00153/0.2888, allocations: 386.1 kB / 470.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.972e-05/0.2888, allocations: 12 kB / 470.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008289/0.2971, allocations: 5.713 MB / 476.1 MB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.2971, allocations: 4.031 kB / 476.1 MB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004661/0.3018, allocations: 1.695 MB / 477.8 MB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003809/0.3022, allocations: 155.3 kB / 477.9 MB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.3023, allocations: 28.05 kB / 477.9 MB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007684/0.3031, allocations: 67.92 kB / 478 MB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.3033, allocations: 84.92 kB / 478.1 MB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.775e-05/0.3033, allocations: 23.98 kB / 478.1 MB, free: 6.844 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004979/0.3038, allocations: 419.1 kB / 478.5 MB, free: 6.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3038, allocations: 0 / 478.5 MB, free: 6.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008999/0.3047, allocations: 288 kB / 478.8 MB, free: 6.156 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 (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 1 system {(1,7,100.0%)} * 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.005032/0.3098, allocations: 2.282 MB / 481.1 MB, free: 3.836 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003394/0.3131, allocations: 1.452 MB / 482.5 MB, free: 2.316 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3132, allocations: 0 / 482.5 MB, free: 2.316 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.3148, allocations: 0.8105 MB / 483.4 MB, free: 1.473 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000937/0.3157, allocations: 219.2 kB / 483.6 MB, free: 1.258 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01511/0.3308, allocations: 7.561 MB / 491.1 MB, free: 9.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006016/0.3314, allocations: 0.9533 MB / 492.1 MB, free: 8.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003995/0.3318, allocations: 98.11 kB / 492.2 MB, free: 8.402 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004364/0.3322, allocations: 295.3 kB / 492.5 MB, free: 8.113 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3322, allocations: 0 / 492.5 MB, free: 8.113 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06805/0.4003, allocations: 27.57 MB / 0.5078 GB, free: 12.94 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/14.29, allocations: 4 kB / 0.5079 GB, free: 12.94 MB / 430.1 MB " [Timeout remaining time 646] (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: 16.689348353014793]