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.001265/0.001265, allocations: 115.7 kB / 18.49 MB, free: 4.566 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.001259/0.001259, allocations: 190.6 kB / 21.43 MB, free: 1.641 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.337/1.337, allocations: 225.6 MB / 249.8 MB, free: 3.625 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 43.94 kB / 366.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08763/0.08915, allocations: 52.13 MB / 418.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005772/0.09492, allocations: 4.861 MB / 423.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.09701, allocations: 1.367 MB / 424.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002076/0.09721, allocations: 15.88 kB / 424.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003493/0.09756, allocations: 154.7 kB / 424.9 MB, free: 6.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005994/0.09816, allocations: 341.4 kB / 425.2 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003953/0.09856, allocations: 219.6 kB / 425.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001026/0.09958, allocations: 1.019 MB / 426.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000311/0.09989, allocations: 201.9 kB / 426.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004493/0.1003, allocations: 414.7 kB / 427 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005318/0.1009, allocations: 454.1 kB / 427.5 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.101, allocations: 88 kB / 427.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001429/0.1011, allocations: 92 kB / 427.7 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.1013, allocations: 195.3 kB / 427.8 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004245/0.1017, allocations: 477.8 kB / 428.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.1028, allocations: 1.07 MB / 429.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1028, allocations: 0 / 429.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1028, allocations: 4 kB / 429.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.1028, allocations: 4 kB / 429.4 MB, free: 1.652 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.00216/0.105, allocations: 1.243 MB / 430.6 MB, free: 352 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.105, allocations: 12.03 kB / 430.6 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.03e-05/0.105, allocations: 17.48 kB / 430.7 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001628/0.1052, allocations: 112 kB / 430.8 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.1054, allocations: 108.3 kB / 430.9 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007877/0.1061, allocations: 0.5246 MB / 431.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001571/0.1063, allocations: 105.3 kB / 431.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.123e-05/0.1064, allocations: 56.12 kB / 431.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.1078, allocations: 0.8205 MB / 432.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.1078, allocations: 7.938 kB / 432.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.575e-05/0.1079, allocations: 32 kB / 432.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.1079, allocations: 12 kB / 432.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.1092, allocations: 0.5165 MB / 432.9 MB, free: 13.86 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.003371/0.1125, allocations: 2.226 MB / 435.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.1137, allocations: 499.1 kB / 435.7 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006158/0.1144, allocations: 269.3 kB / 435.9 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.802e-05/0.1144, allocations: 12.56 kB / 435.9 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007628/0.1152, allocations: 350.9 kB / 436.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.244e-06/0.1152, allocations: 0 / 436.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=84): time 0.009081/0.1243, allocations: 2.949 MB / 439.2 MB, free: 7.344 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004741/0.1247, allocations: 0.8237 MB / 440.1 MB, free: 6.324 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007919/0.1255, allocations: 0.5901 MB / 440.6 MB, free: 5.727 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.469e-05/0.1256, allocations: 49.7 kB / 440.7 MB, free: 5.672 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002851/0.1259, allocations: 337.2 kB / 441 MB, free: 5.336 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002525/0.1261, allocations: 297.4 kB / 441.3 MB, free: 5.043 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002722/0.1264, allocations: 162.6 kB / 441.5 MB, free: 4.879 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.1266, allocations: 390.7 kB / 441.9 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009743/0.1276, allocations: 329.8 kB / 442.2 MB, free: 4.164 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.1289, allocations: 0.6465 MB / 442.8 MB, free: 3.395 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001935/0.1308, allocations: 0.8121 MB / 443.6 MB, free: 2.539 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1308, allocations: 4 kB / 443.6 MB, free: 2.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003991/0.1348, allocations: 1.334 MB / 445 MB, free: 1.176 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.182e-05/0.1349, allocations: 63.39 kB / 445 MB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.1349, allocations: 4 kB / 445 MB, free: 1.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001803/0.1367, allocations: 446.1 kB / 445.5 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.1378, allocations: 183.7 kB / 445.6 MB, free: 484 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1589/0.2967, allocations: 7.067 MB / 452.7 MB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009297/0.2976, allocations: 84.12 kB / 452.8 MB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.138e-05/0.2977, allocations: 30.19 kB / 452.8 MB, free: 26.09 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.0003077/0.298, allocations: 228 kB / 453.1 MB, free: 25.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.2981, allocations: 89.39 kB / 453.1 MB, free: 25.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001549/0.2982, allocations: 95.12 kB / 453.2 MB, free: 25.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.2982, allocations: 8.906 kB / 453.2 MB, free: 25.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.2983, allocations: 3 kB / 453.2 MB, free: 25.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002925/0.3012, allocations: 1.392 MB / 454.6 MB, free: 25.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005188/0.3064, allocations: 2.321 MB / 457 MB, free: 24.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3064, allocations: 5.5 kB / 457 MB, free: 24.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.3075, allocations: 175.7 kB / 457.1 MB, free: 24.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001616/0.3091, allocations: 384 kB / 457.5 MB, free: 24.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.85e-05/0.3091, allocations: 18.33 kB / 457.5 MB, free: 24.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006796/0.3159, allocations: 6.026 MB / 463.6 MB, free: 19.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.3159, allocations: 5.219 kB / 463.6 MB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004453/0.3204, allocations: 1.7 MB / 465.3 MB, free: 18.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003206/0.3207, allocations: 232.3 kB / 465.5 MB, free: 18.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.3208, allocations: 24.3 kB / 465.5 MB, free: 18.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007414/0.3216, allocations: 71.02 kB / 465.6 MB, free: 18.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.3218, allocations: 86.23 kB / 465.7 MB, free: 18.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.742e-05/0.3218, allocations: 21.59 kB / 465.7 MB, free: 18.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004518/0.3223, allocations: 419.2 kB / 466.1 MB, free: 18.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3223, allocations: 0 / 466.1 MB, free: 18.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008778/0.3232, allocations: 296.9 kB / 466.4 MB, free: 18.29 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 (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.004594/0.3277, allocations: 2.27 MB / 468.7 MB, free: 17.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003165/0.3309, allocations: 1.468 MB / 470.1 MB, free: 16.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3309, allocations: 1.375 kB / 470.1 MB, free: 16.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/0.3323, allocations: 0.8045 MB / 470.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008486/0.3332, allocations: 221.8 kB / 471.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.3465, allocations: 7.568 MB / 478.7 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.3468, allocations: 0.9455 MB / 479.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004157/0.3472, allocations: 97.8 kB / 479.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003145/0.3476, allocations: 299 kB / 480 MB, free: 11.06 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3476, allocations: 3.938 kB / 480 MB, free: 11.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05814/0.4057, allocations: 26.9 MB / 0.4951 GB, free: 3.934 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.52, allocations: 8.625 kB / 0.4951 GB, free: 3.926 MB / 382.1 MB " [Timeout remaining time 646] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.921760579047259]