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.001664/0.001664, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001697/0.001697, allocations: 212.4 kB / 24.52 MB, free: 3.941 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.351/1.351, allocations: 230.6 MB / 258.3 MB, free: 7.793 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="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.001372/0.001372, allocations: 55.92 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2329, allocations: 53.37 MB / 431.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005888/0.2388, allocations: 4.361 MB / 436.2 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002563/0.2414, allocations: 1.316 MB / 437.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004717/0.2419, allocations: 15.88 kB / 437.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004824/0.2423, allocations: 158.7 kB / 437.7 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000942/0.2433, allocations: 337.3 kB / 438 MB, free: 440 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005388/0.2438, allocations: 219.6 kB / 438.3 MB, free: 220 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001252/0.2451, allocations: 1.026 MB / 439.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003209/0.2454, allocations: 206.4 kB / 439.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005118/0.2459, allocations: 422.6 kB / 439.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005129/0.2464, allocations: 450.1 kB / 440.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.2465, allocations: 92 kB / 440.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001565/0.2467, allocations: 95.94 kB / 440.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001728/0.2469, allocations: 195.4 kB / 440.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004065/0.2473, allocations: 402.3 kB / 441.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.2483, allocations: 1.078 MB / 442.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.2483, allocations: 4 kB / 442.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2483, allocations: 3.938 kB / 442.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.2483, allocations: 0 / 442.2 MB, free: 12.26 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.002092/0.2504, allocations: 1.176 MB / 443.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.2505, allocations: 8.031 kB / 443.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.263e-05/0.2505, allocations: 17.5 kB / 443.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001539/0.2506, allocations: 108 kB / 443.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.2508, allocations: 104.4 kB / 443.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000767/0.2516, allocations: 475.3 kB / 444.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00018/0.2518, allocations: 156.7 kB / 444.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.637e-05/0.2519, allocations: 68.08 kB / 444.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001746/0.2536, allocations: 1.574 MB / 445.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.2536, allocations: 3.984 kB / 445.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.648e-05/0.2537, allocations: 28 kB / 445.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.2537, allocations: 16 kB / 445.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.2549, allocations: 0.5243 MB / 446.4 MB, free: 7.625 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.003156/0.2581, allocations: 1.808 MB / 448.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.2592, allocations: 493.3 kB / 448.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005847/0.2598, allocations: 268.9 kB / 449 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.221e-05/0.2598, allocations: 16.59 kB / 449 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007485/0.2606, allocations: 344.3 kB / 449.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.414e-06/0.2606, allocations: 0 / 449.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.008695/0.2693, allocations: 2.723 MB / 452.1 MB, free: 1.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004464/0.2697, allocations: 0.8276 MB / 452.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007496/0.2705, allocations: 0.5824 MB / 453.5 MB, free: 248 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.943e-05/0.2706, allocations: 49.7 kB / 453.5 MB, free: 192 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003219/0.2709, allocations: 349.2 kB / 453.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002432/0.2711, allocations: 289.4 kB / 454.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002821/0.2714, allocations: 174.5 kB / 454.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002519/0.2717, allocations: 386.8 kB / 454.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009697/0.2726, allocations: 381.1 kB / 455.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/0.2742, allocations: 1.465 MB / 456.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001822/0.276, allocations: 0.8082 MB / 457.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.276, allocations: 0 / 457.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003927/0.28, allocations: 1.396 MB / 458.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.577e-05/0.28, allocations: 67.39 kB / 458.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.28, allocations: 0 / 458.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001785/0.2818, allocations: 446.1 kB / 459.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.2829, allocations: 183.7 kB / 459.4 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.2938, allocations: 6.681 MB / 466.1 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009589/0.2947, allocations: 75.84 kB / 466.2 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.697e-05/0.2948, allocations: 32 kB / 466.2 MB, free: 2.703 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.0003783/0.2952, allocations: 233.7 kB / 466.4 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.2953, allocations: 99.42 kB / 466.5 MB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001868/0.2955, allocations: 91.97 kB / 466.6 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.2955, allocations: 8 kB / 466.6 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.2955, allocations: 4 kB / 466.6 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003126/0.2987, allocations: 1.393 MB / 468 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005452/0.3041, allocations: 2.144 MB / 470.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.3041, allocations: 0 / 470.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.3052, allocations: 175.8 kB / 470.3 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001547/0.3067, allocations: 386.1 kB / 470.7 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-05/0.3068, allocations: 23.86 kB / 470.7 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008274/0.3151, allocations: 5.663 MB / 476.4 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3151, allocations: 0 / 476.4 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004686/0.3198, allocations: 1.699 MB / 478.1 MB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003801/0.3201, allocations: 151.3 kB / 478.2 MB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.3203, allocations: 28.17 kB / 478.3 MB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007467/0.321, allocations: 71.92 kB / 478.3 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/0.3212, allocations: 88.78 kB / 478.4 MB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.162e-05/0.3213, allocations: 19.98 kB / 478.4 MB, free: 5.871 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004981/0.3218, allocations: 419.1 kB / 478.9 MB, free: 5.465 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3218, allocations: 4.062 kB / 478.9 MB, free: 5.461 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009274/0.3227, allocations: 292 kB / 479.1 MB, free: 5.176 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.004921/0.3276, allocations: 2.271 MB / 481.4 MB, free: 2.867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003365/0.331, allocations: 1.518 MB / 482.9 MB, free: 1.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.331, allocations: 4 kB / 482.9 MB, free: 1.266 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001564/0.3326, allocations: 0.8065 MB / 483.7 MB, free: 436 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008827/0.3334, allocations: 211.1 kB / 483.9 MB, free: 224 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.3486, allocations: 7.775 MB / 491.7 MB, free: 8.176 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.349, allocations: 359.3 kB / 492.1 MB, free: 7.801 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004589/0.3495, allocations: 94.17 kB / 492.2 MB, free: 7.707 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004222/0.3499, allocations: 295.3 kB / 492.5 MB, free: 7.418 MB / 398.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3499, allocations: 4 kB / 492.5 MB, free: 7.414 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06495/0.4148, allocations: 28.81 MB / 0.509 GB, free: 11.12 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.25, allocations: 15.28 kB / 0.5091 GB, free: 11.11 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.65388196706772]