Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.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.0009962/0.0009962, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.004189/0.004189, allocations: 144.5 kB / 24.68 MB, free: 9.422 MB / 18.57 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 0.8401/0.8401, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 319.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.018e-05/3.219e-05, allocations: 6.219 kB / 319.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.0109/0.01093, allocations: 11.8 MB / 331.5 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008134/0.01906, allocations: 10.13 MB / 341.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.01917, allocations: 0 / 341.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003022/0.01947, allocations: 75.47 kB / 341.7 MB, free: 15.78 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002543/0.01972, allocations: 87.3 kB / 341.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009239/0.02896, allocations: 5.098 MB / 346.8 MB, free: 10.61 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002903/0.02925, allocations: 238.8 kB / 347.1 MB, free: 10.37 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.124e-05/0.0293, allocations: 9.578 kB / 347.1 MB, free: 10.36 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003418/0.02965, allocations: 215.3 kB / 347.3 MB, free: 10.14 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.624e-05/0.02973, allocations: 59.86 kB / 347.4 MB, free: 10.09 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.02975, allocations: 8 kB / 347.4 MB, free: 10.08 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008575/0.03833, allocations: 6.68 MB / 354 MB, free: 3.391 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.03844, allocations: 31.89 kB / 354.1 MB, free: 3.359 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.03856, allocations: 55.84 kB / 354.1 MB, free: 3.305 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008212/0.04678, allocations: 4.97 MB / 359.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.04678, allocations: 4 kB / 359.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.04678, allocations: 0 / 359.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.79e-06/0.04679, allocations: 4 kB / 359.1 MB, free: 14.32 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.003049/0.04984, allocations: 1.08 MB / 360.2 MB, free: 13.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.04988, allocations: 8.922 kB / 360.2 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002625/0.05014, allocations: 52.8 kB / 360.2 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.05042, allocations: 161.6 kB / 360.4 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.05045, allocations: 12.66 kB / 360.4 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.149e-05/0.05049, allocations: 20.33 kB / 360.4 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000706/0.05119, allocations: 440.8 kB / 360.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.05121, allocations: 192 / 360.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.05124, allocations: 15.94 kB / 360.9 MB, free: 12.44 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.05124, allocations: 4 kB / 360.9 MB, free: 12.44 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006774/0.05192, allocations: 351.5 kB / 361.2 MB, free: 12.09 MB / 330.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.0008966/0.05282, allocations: 1.001 MB / 362.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004646/0.05328, allocations: 275.7 kB / 362.5 MB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.05342, allocations: 106.5 kB / 362.6 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04079/0.09421, allocations: 25.15 MB / 387.8 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.09425, allocations: 34.5 kB / 387.8 MB, free: 1.398 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 2.464e-06/0.09425, allocations: 0 / 387.8 MB, free: 1.398 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.003882/0.09813, allocations: 1.519 MB / 389.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.09818, allocations: 110.8 kB / 389.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.059e-05/0.09826, allocations: 117.8 kB / 389.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.09828, allocations: 33.7 kB / 389.6 MB, free: 15.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.969e-05/0.09833, allocations: 104.6 kB / 389.7 MB, free: 15.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.156e-05/0.0984, allocations: 115 kB / 389.8 MB, free: 15.33 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8e-05/0.09848, allocations: 73.64 kB / 389.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.355e-05/0.09856, allocations: 326.8 kB / 390.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.09876, allocations: 135.9 kB / 390.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.09899, allocations: 198.5 kB / 390.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004362/0.09943, allocations: 346.6 kB / 390.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.09943, allocations: 0 / 390.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000591/0.1, allocations: 430.1 kB / 391.3 MB, free: 13.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.1, allocations: 8.031 kB / 391.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1, allocations: 4 kB / 391.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001672/0.1002, allocations: 36.83 kB / 391.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.1004, allocations: 87.88 kB / 391.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002788/0.1007, allocations: 0.5524 MB / 391.9 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.1008, allocations: 24.08 kB / 392 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.381e-05/0.1009, allocations: 19.98 kB / 392 MB, free: 13.02 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.101, allocations: 137.7 kB / 392.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.244e-05/0.101, allocations: 19.84 kB / 392.1 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001271/0.1023, allocations: 1.494 MB / 393.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/0.1023, allocations: 28 kB / 393.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.1023, allocations: 4.375 kB / 393.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.1023, allocations: 3.984 kB / 393.7 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001969/0.1043, allocations: 1.913 MB / 395.6 MB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.1043, allocations: 4 kB / 395.6 MB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.1045, allocations: 79.86 kB / 395.7 MB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001797/0.1047, allocations: 84.75 kB / 395.7 MB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.1047, allocations: 15.98 kB / 395.8 MB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002418/0.1049, allocations: 0.5837 MB / 396.3 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.1049, allocations: 0 / 396.3 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.1062, allocations: 1.748 MB / 398.1 MB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.381e-05/0.1063, allocations: 55.47 kB / 398.1 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.088e-05/0.1063, allocations: 12 kB / 398.2 MB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.1065, allocations: 28.02 kB / 398.2 MB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.283e-05/0.1065, allocations: 35.83 kB / 398.2 MB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/0.1066, allocations: 19.98 kB / 398.2 MB, free: 6.633 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.925e-05/0.1066, allocations: 91.27 kB / 398.3 MB, free: 6.543 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1066, allocations: 0 / 398.3 MB, free: 6.543 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002013/0.1086, allocations: 0.963 MB / 399.3 MB, free: 5.578 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002925/0.1115, allocations: 1.286 MB / 400.6 MB, free: 4.277 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008999/0.1124, allocations: 0.6085 MB / 401.2 MB, free: 3.672 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1124, allocations: 0 / 401.2 MB, free: 3.672 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004529/0.1129, allocations: 469.9 kB / 401.6 MB, free: 3.215 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000478/0.1134, allocations: 72.14 kB / 401.7 MB, free: 3.145 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.1151, allocations: 1.27 MB / 403 MB, free: 1.824 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001322/0.1152, allocations: 212.3 kB / 403.2 MB, free: 1.598 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.1153, allocations: 40.48 kB / 403.2 MB, free: 1.559 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.1153, allocations: 0 / 403.2 MB, free: 1.559 MB / 362.7 MB Notification: Performance of Templates: time 0.02281/0.1381, allocations: 22.07 MB / 425.3 MB, free: 11.46 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.0.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.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: 5.533322489820421]