Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.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.001674/0.001674, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001679/0.001679, allocations: 211.2 kB / 24.47 MB, free: 3.977 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 2.085/2.085, allocations: 230.6 MB / 258.2 MB, free: 7.797 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: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Media.Examples.WaterIF97") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 47.92 kB / 378.9 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2888, allocations: 53.37 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.02035/0.3091, allocations: 11.92 MB / 444.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01746/0.3266, allocations: 10.13 MB / 454.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.3267, allocations: 0 / 454.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003578/0.327, allocations: 55.66 kB / 454.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003489/0.3274, allocations: 99.3 kB / 454.5 MB, free: 456 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01636/0.3437, allocations: 5.039 MB / 459.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004567/0.3442, allocations: 231 kB / 459.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.546e-05/0.3443, allocations: 9.641 kB / 459.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005266/0.3448, allocations: 187.4 kB / 460 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001603/0.345, allocations: 79.69 kB / 460 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.558e-05/0.345, allocations: 11.94 kB / 460.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01583/0.3608, allocations: 6.962 MB / 467 MB, free: 3.926 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.3609, allocations: 39.83 kB / 467.1 MB, free: 3.887 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001292/0.3611, allocations: 55.8 kB / 467.1 MB, free: 3.832 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.3726, allocations: 3.875 MB / 471 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.3726, allocations: 0 / 471 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3726, allocations: 0 / 471 MB, free: 15.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.3726, allocations: 0 / 471 MB, free: 15.95 MB / 382.1 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.006564/0.3791, allocations: 1.095 MB / 472.1 MB, free: 14.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.3792, allocations: 12.03 kB / 472.1 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006697/0.3799, allocations: 48.84 kB / 472.1 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004399/0.3803, allocations: 162.3 kB / 472.3 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.3803, allocations: 12.66 kB / 472.3 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.638e-05/0.3804, allocations: 12.38 kB / 472.3 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001752/0.3822, allocations: 444.2 kB / 472.8 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.3822, allocations: 11.88 kB / 472.8 MB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.3822, allocations: 4 kB / 472.8 MB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.3822, allocations: 4 kB / 472.8 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/0.3841, allocations: 359.6 kB / 473.1 MB, free: 13.7 MB / 382.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.00178/0.3859, allocations: 0.9894 MB / 474.1 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.387, allocations: 279.8 kB / 474.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003641/0.3874, allocations: 106.5 kB / 474.5 MB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.119/0.5064, allocations: 26.12 MB / 0.4889 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/0.5065, allocations: 38.5 kB / 0.4889 GB, free: 2.047 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.795e-06/0.5065, allocations: 0 / 0.4889 GB, free: 2.047 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.009105/0.5156, allocations: 1.51 MB / 0.4904 GB, free: 0.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.285e-05/0.5157, allocations: 106.8 kB / 0.4905 GB, free: 380 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.5158, allocations: 117.8 kB / 0.4906 GB, free: 252 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.08e-05/0.5158, allocations: 33.7 kB / 0.4906 GB, free: 212 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.109e-05/0.5159, allocations: 108.6 kB / 0.4907 GB, free: 100 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/0.5161, allocations: 123.1 kB / 0.4909 GB, free: 15.97 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.5163, allocations: 69.69 kB / 0.4909 GB, free: 15.9 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.5164, allocations: 326.8 kB / 0.4912 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005419/0.517, allocations: 143.7 kB / 0.4914 GB, free: 15.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005893/0.5176, allocations: 194.8 kB / 0.4916 GB, free: 15.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.5187, allocations: 342.6 kB / 0.4919 GB, free: 14.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.5187, allocations: 0 / 0.4919 GB, free: 14.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001528/0.5202, allocations: 426 kB / 0.4923 GB, free: 14.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.5202, allocations: 11.94 kB / 0.4923 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.5202, allocations: 4 kB / 0.4923 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003153/0.5206, allocations: 44.77 kB / 0.4924 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006856/0.5212, allocations: 87.88 kB / 0.4924 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000518/0.5218, allocations: 0.5407 MB / 0.493 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003896/0.5221, allocations: 32.44 kB / 0.493 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.882e-05/0.5222, allocations: 12 kB / 0.493 GB, free: 13.68 MB / 414.1 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.0002143/0.5224, allocations: 137.7 kB / 0.4931 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.5226, allocations: 15.91 kB / 0.4932 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00301/0.5256, allocations: 1.501 MB / 0.4946 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.615e-05/0.5256, allocations: 27.94 kB / 0.4946 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.5256, allocations: 0 / 0.4946 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.5256, allocations: 0 / 0.4946 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003971/0.5296, allocations: 1.905 MB / 0.4965 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.5296, allocations: 4 kB / 0.4965 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005952/0.5302, allocations: 83.86 kB / 0.4966 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004043/0.5306, allocations: 76.88 kB / 0.4967 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.051e-05/0.5306, allocations: 11.98 kB / 0.4967 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000509/0.5312, allocations: 0.5914 MB / 0.4973 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5312, allocations: 0 / 0.4973 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003063/0.5342, allocations: 1.745 MB / 0.499 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.773e-05/0.5343, allocations: 51.53 kB / 0.499 GB, free: 7.402 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.845e-05/0.5344, allocations: 8 kB / 0.499 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005077/0.5349, allocations: 19.98 kB / 0.499 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.187e-05/0.535, allocations: 39.88 kB / 0.4991 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.046e-05/0.535, allocations: 19.98 kB / 0.4991 GB, free: 7.316 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.481e-05/0.5351, allocations: 91.27 kB / 0.4992 GB, free: 7.227 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5351, allocations: 0 / 0.4992 GB, free: 7.227 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003413/0.5385, allocations: 0.9707 MB / 0.5001 GB, free: 6.254 MB / 414.1 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.005782/0.5443, allocations: 1.154 MB / 0.5013 GB, free: 5.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001926/0.5462, allocations: 0.6091 MB / 0.5018 GB, free: 4.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.5462, allocations: 0 / 0.5018 GB, free: 4.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.5473, allocations: 473.8 kB / 0.5023 GB, free: 4.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.5484, allocations: 79.52 kB / 0.5024 GB, free: 3.945 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003197/0.5516, allocations: 1.338 MB / 0.5037 GB, free: 2.562 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.5519, allocations: 224.1 kB / 0.5039 GB, free: 2.324 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004741/0.5524, allocations: 137.2 kB / 0.504 GB, free: 2.195 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.5526, allocations: 43.41 kB / 0.5041 GB, free: 2.152 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5526, allocations: 4 kB / 0.5041 GB, free: 2.148 MB / 414.1 MB Notification: Performance of Templates: time 0.3276/0.8801, allocations: 36.99 MB / 0.5402 GB, free: 109.6 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.1.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 10.720430127999862]