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.0008206/0.0008206, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008284/0.0008284, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8771/0.8771, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 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="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 1.433e-06/1.433e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.605e-05/1.748e-05, allocations: 6.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.003867/0.003884, allocations: 4.378 MB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001888/0.005773, allocations: 1.335 MB / 330.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002772/0.00605, allocations: 11.94 kB / 330.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.00636, allocations: 154.6 kB / 330.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000511/0.006871, allocations: 361.1 kB / 330.8 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003633/0.007235, allocations: 219.5 kB / 331 MB, free: 9.465 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007629/0.007997, allocations: 1.065 MB / 332.1 MB, free: 8.395 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003001/0.008298, allocations: 194.3 kB / 332.3 MB, free: 8.195 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005898/0.008887, allocations: 0.6081 MB / 332.9 MB, free: 7.586 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002844/0.009172, allocations: 327.1 kB / 333.2 MB, free: 7.266 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.719e-05/0.009249, allocations: 88 kB / 333.3 MB, free: 7.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.368e-05/0.009333, allocations: 92 kB / 333.4 MB, free: 7.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.642e-05/0.009429, allocations: 203.2 kB / 333.6 MB, free: 6.891 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002436/0.009673, allocations: 339.3 kB / 333.9 MB, free: 6.559 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007244/0.0104, allocations: 1.122 MB / 335 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.0104, allocations: 4 kB / 335 MB, free: 5.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.0104, allocations: 0 / 335 MB, free: 5.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.01041, allocations: 0 / 335 MB, free: 5.43 MB / 298.7 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.001406/0.01182, allocations: 1.159 MB / 336.2 MB, free: 4.227 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.01186, allocations: 8.031 kB / 336.2 MB, free: 4.219 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001236/0.01198, allocations: 119.9 kB / 336.3 MB, free: 4.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.0121, allocations: 100.4 kB / 336.4 MB, free: 3.992 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005595/0.01266, allocations: 474.5 kB / 336.9 MB, free: 3.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.01278, allocations: 160.6 kB / 337 MB, free: 3.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.73e-05/0.01283, allocations: 52.38 kB / 337.1 MB, free: 3.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.01394, allocations: 1.562 MB / 338.6 MB, free: 1.418 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.01396, allocations: 4.141 kB / 338.6 MB, free: 1.414 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.022e-05/0.014, allocations: 27.94 kB / 338.7 MB, free: 1.387 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.01401, allocations: 12 kB / 338.7 MB, free: 1.375 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000687/0.0147, allocations: 0.5048 MB / 339.2 MB, free: 0.8672 MB / 298.7 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.002177/0.01688, allocations: 1.762 MB / 340.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007048/0.01758, allocations: 0.4942 MB / 341.4 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.01789, allocations: 230.2 kB / 341.7 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.01792, allocations: 12.48 kB / 341.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004102/0.01833, allocations: 318.2 kB / 342 MB, free: 13.94 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 1.793e-06/0.01833, allocations: 0 / 342 MB, free: 13.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002436/0.02076, allocations: 1.326 MB / 343.3 MB, free: 12.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002119/0.02098, allocations: 0.8232 MB / 344.1 MB, free: 11.58 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004332/0.02141, allocations: 0.5979 MB / 344.7 MB, free: 10.97 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.768e-05/0.02145, allocations: 41.7 kB / 344.8 MB, free: 10.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.02162, allocations: 353.1 kB / 345.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.02172, allocations: 194.3 kB / 345.3 MB, free: 10.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.02184, allocations: 130.3 kB / 345.4 MB, free: 10.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.02194, allocations: 378.8 kB / 345.8 MB, free: 9.875 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003211/0.02226, allocations: 264.6 kB / 346.1 MB, free: 9.605 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006543/0.02292, allocations: 1.337 MB / 347.4 MB, free: 7.945 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008826/0.0238, allocations: 0.5642 MB / 348 MB, free: 7.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.0238, allocations: 0 / 348 MB, free: 7.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00116/0.02496, allocations: 0.9426 MB / 348.9 MB, free: 6.363 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.175e-05/0.025, allocations: 63.39 kB / 349 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.025, allocations: 4 kB / 349 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003902/0.02539, allocations: 221.5 kB / 349.2 MB, free: 6.062 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.02568, allocations: 115.8 kB / 349.3 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003491/0.02918, allocations: 4.327 MB / 353.6 MB, free: 1.395 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003206/0.0295, allocations: 87.58 kB / 353.7 MB, free: 1.309 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.02952, allocations: 23.98 kB / 353.7 MB, free: 1.285 MB / 314.7 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.000183/0.02971, allocations: 216.3 kB / 354 MB, free: 1.066 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.619e-05/0.02977, allocations: 79.53 kB / 354 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.248e-05/0.02985, allocations: 82.91 kB / 354.1 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.02985, allocations: 7.938 kB / 354.1 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.02985, allocations: 0 / 354.1 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001283/0.03113, allocations: 1.049 MB / 355.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.03265, allocations: 1.382 MB / 356.5 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.03265, allocations: 0 / 356.5 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002969/0.03295, allocations: 107.8 kB / 356.7 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002864/0.03324, allocations: 177.8 kB / 356.8 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.03326, allocations: 12 kB / 356.8 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00264/0.0359, allocations: 3.703 MB / 360.5 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.0359, allocations: 0 / 360.5 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.03716, allocations: 1.018 MB / 361.6 MB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001828/0.03734, allocations: 147.3 kB / 361.7 MB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/0.03758, allocations: 12 kB / 361.7 MB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000436/0.03801, allocations: 43.95 kB / 361.8 MB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.03815, allocations: 56.39 kB / 361.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-05/0.03818, allocations: 19.98 kB / 361.8 MB, free: 8.738 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003705/0.03855, allocations: 423.1 kB / 362.2 MB, free: 8.332 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.03855, allocations: 0 / 362.2 MB, free: 8.332 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005915/0.03914, allocations: 259.7 kB / 362.5 MB, free: 8.078 MB / 330.7 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.001654/0.04079, allocations: 1.586 MB / 364.1 MB, free: 6.457 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.04209, allocations: 1.037 MB / 365.1 MB, free: 5.355 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.0421, allocations: 8.188 kB / 365.1 MB, free: 5.348 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005419/0.04264, allocations: 0.5195 MB / 365.7 MB, free: 4.801 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005689/0.04321, allocations: 211.2 kB / 365.9 MB, free: 4.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00647/0.04968, allocations: 6.339 MB / 372.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.04989, allocations: 324.3 kB / 372.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002417/0.05013, allocations: 85.22 kB / 372.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002296/0.05036, allocations: 264.3 kB / 372.9 MB, free: 13.37 MB / 346.7 MB Notification: Performance of SimCode: time 1.133e-06/0.05036, allocations: 4 kB / 372.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03931/0.08967, allocations: 24.93 MB / 397.8 MB, free: 4.867 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.92/8.01, allocations: 11.94 kB / 397.8 MB, free: 4.855 MB / 362.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins/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: 9.650712457485497]