Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 51.92 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08862/0.09016, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00614/0.09629, allocations: 4.853 MB / 422.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002491/0.09879, allocations: 1.363 MB / 424 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004186/0.0992, allocations: 7.938 kB / 424 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004465/0.09965, allocations: 162.7 kB / 424.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008189/0.1005, allocations: 345.4 kB / 424.5 MB, free: 5.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004775/0.1009, allocations: 219.6 kB / 424.7 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001097/0.102, allocations: 1.014 MB / 425.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000322/0.1024, allocations: 198 kB / 425.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004636/0.1028, allocations: 410.6 kB / 426.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004963/0.1033, allocations: 454.1 kB / 426.8 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.1034, allocations: 88 kB / 426.8 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.1036, allocations: 91.94 kB / 426.9 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001637/0.1038, allocations: 191.3 kB / 427.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004306/0.1042, allocations: 477.9 kB / 427.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.1053, allocations: 1.078 MB / 428.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1053, allocations: 3.984 kB / 428.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1053, allocations: 0 / 428.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.612e-05/0.1053, allocations: 0 / 428.7 MB, free: 1.656 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.002181/0.1075, allocations: 1.243 MB / 429.9 MB, free: 356 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.1075, allocations: 8.031 kB / 429.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001592/0.1077, allocations: 115.9 kB / 430 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.1078, allocations: 104.3 kB / 430.1 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008219/0.1087, allocations: 0.5245 MB / 430.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/0.1088, allocations: 105.3 kB / 430.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.82e-05/0.1089, allocations: 52.38 kB / 430.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.1103, allocations: 0.801 MB / 431.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.322e-05/0.1103, allocations: 0 / 431.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.188e-05/0.1103, allocations: 28 kB / 431.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.1104, allocations: 23.98 kB / 431.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.1115, allocations: 0.5008 MB / 432.2 MB, free: 13.93 MB / 366.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.003312/0.1149, allocations: 2.179 MB / 434.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.1161, allocations: 0.4947 MB / 434.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005538/0.1167, allocations: 226.4 kB / 435.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.1167, allocations: 13.66 kB / 435.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007275/0.1174, allocations: 330.9 kB / 435.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.224e-06/0.1174, allocations: 3.938 kB / 435.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.004715/0.1221, allocations: 1.47 MB / 436.9 MB, free: 9.008 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000425/0.1226, allocations: 0.8272 MB / 437.7 MB, free: 7.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007269/0.1233, allocations: 0.5978 MB / 438.3 MB, free: 7.375 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.086e-05/0.1234, allocations: 45.64 kB / 438.3 MB, free: 7.324 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002819/0.1237, allocations: 349.1 kB / 438.7 MB, free: 6.977 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.1238, allocations: 194.3 kB / 438.9 MB, free: 6.785 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002086/0.124, allocations: 134.2 kB / 439 MB, free: 6.648 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.1242, allocations: 374.8 kB / 439.4 MB, free: 6.273 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005525/0.1248, allocations: 213 kB / 439.6 MB, free: 6.066 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008341/0.1256, allocations: 0.5286 MB / 440.1 MB, free: 5.414 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.1268, allocations: 0.5614 MB / 440.7 MB, free: 4.812 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1268, allocations: 0 / 440.7 MB, free: 4.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00219/0.1289, allocations: 0.8977 MB / 441.6 MB, free: 3.887 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.086e-05/0.129, allocations: 59.41 kB / 441.6 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.129, allocations: 0 / 441.6 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000692/0.1297, allocations: 221.5 kB / 441.8 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005992/0.1303, allocations: 115.8 kB / 442 MB, free: 3.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1752/0.3055, allocations: 4.583 MB / 446.5 MB, free: 28.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008223/0.3063, allocations: 84.23 kB / 446.6 MB, free: 28.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.055e-05/0.3064, allocations: 23.09 kB / 446.6 MB, free: 28.87 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.0002724/0.3066, allocations: 215.9 kB / 446.9 MB, free: 28.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.938e-05/0.3067, allocations: 88.52 kB / 446.9 MB, free: 28.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001226/0.3069, allocations: 80.91 kB / 447 MB, free: 28.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3069, allocations: 6.125 kB / 447 MB, free: 28.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3069, allocations: 0 / 447 MB, free: 28.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001706/0.3086, allocations: 1.044 MB / 448.1 MB, free: 28.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002174/0.3107, allocations: 1.54 MB / 449.6 MB, free: 27.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3107, allocations: 1.312 kB / 449.6 MB, free: 27.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005402/0.3113, allocations: 106.1 kB / 449.7 MB, free: 27.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004656/0.3117, allocations: 166.7 kB / 449.9 MB, free: 27.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.065e-05/0.3118, allocations: 16.31 kB / 449.9 MB, free: 27.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003805/0.3156, allocations: 3.935 MB / 453.8 MB, free: 24.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3156, allocations: 2.188 kB / 453.8 MB, free: 24.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002005/0.3176, allocations: 1.026 MB / 454.9 MB, free: 24.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002642/0.3179, allocations: 219.7 kB / 455.1 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.209e-05/0.3179, allocations: 15.36 kB / 455.1 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005397/0.3185, allocations: 45.83 kB / 455.1 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/0.3186, allocations: 54.62 kB / 455.2 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.284e-05/0.3187, allocations: 19.72 kB / 455.2 MB, free: 24.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004644/0.3191, allocations: 424.7 kB / 455.6 MB, free: 24.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3191, allocations: 0 / 455.6 MB, free: 24.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007583/0.3199, allocations: 254.1 kB / 455.9 MB, free: 24.42 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.002441/0.3223, allocations: 1.589 MB / 457.5 MB, free: 23.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001791/0.3241, allocations: 0.9929 MB / 458.4 MB, free: 22.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.3241, allocations: 11.31 kB / 458.5 MB, free: 22.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008348/0.325, allocations: 0.5159 MB / 459 MB, free: 22.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007989/0.3258, allocations: 212.5 kB / 459.2 MB, free: 22.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008686/0.3344, allocations: 6.124 MB / 465.3 MB, free: 19.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.3348, allocations: 0.9166 MB / 466.2 MB, free: 18.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004039/0.3352, allocations: 85.59 kB / 466.3 MB, free: 18.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002602/0.3355, allocations: 261.9 kB / 466.6 MB, free: 18.38 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3355, allocations: 0 / 466.6 MB, free: 18.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0513/0.3868, allocations: 22.92 MB / 489.5 MB, free: 4.609 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/13.06, allocations: 8.625 kB / 489.5 MB, free: 4.602 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.383580118883401]