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.001922/0.001922, allocations: 88.59 kB / 20.95 MB, free: 328 kB / 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.002313/0.002313, allocations: 152.8 kB / 24.25 MB, free: 3.266 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.43/1.43, allocations: 173.3 MB / 200.8 MB, free: 12.74 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: 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 1.373e-06/1.373e-06, allocations: 3.938 kB / 267.3 MB, free: 10.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.694e-05/2.831e-05, allocations: 7.797 kB / 267.3 MB, free: 10.23 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.0169/0.01693, allocations: 11.82 MB / 279.1 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0151/0.03203, allocations: 10.12 MB / 289.2 MB, free: 4.188 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.03221, allocations: 0 / 289.2 MB, free: 4.188 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000439/0.03265, allocations: 63.58 kB / 289.3 MB, free: 4.125 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004286/0.03307, allocations: 91.31 kB / 289.4 MB, free: 4.035 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01425/0.04733, allocations: 5.075 MB / 294.4 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004569/0.04778, allocations: 250.7 kB / 294.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.577e-05/0.04785, allocations: 5.641 kB / 294.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006192/0.04847, allocations: 215.3 kB / 294.9 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.04863, allocations: 55.88 kB / 295 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.967e-05/0.04866, allocations: 8 kB / 295 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01361/0.06228, allocations: 6.684 MB / 301.7 MB, free: 7.719 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.06238, allocations: 31.91 kB / 301.7 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001316/0.06251, allocations: 55.84 kB / 301.7 MB, free: 7.633 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.07365, allocations: 4.974 MB / 306.7 MB, free: 2.648 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.07366, allocations: 4 kB / 306.7 MB, free: 2.645 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.07366, allocations: 0 / 306.7 MB, free: 2.645 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.07367, allocations: 0 / 306.7 MB, free: 2.645 MB / 286.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.005415/0.07909, allocations: 1.084 MB / 307.8 MB, free: 1.527 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.07913, allocations: 16.86 kB / 307.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006407/0.07977, allocations: 80.56 kB / 307.9 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.08015, allocations: 165.6 kB / 308.1 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.08018, allocations: 20.59 kB / 308.1 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.177e-05/0.08023, allocations: 12.38 kB / 308.1 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.08174, allocations: 436.8 kB / 308.5 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.08176, allocations: 8.125 kB / 308.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.066e-05/0.08181, allocations: 15.92 kB / 308.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.08182, allocations: 4 kB / 308.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001594/0.08341, allocations: 347.6 kB / 308.9 MB, free: 388 kB / 286.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.1121/0.1955, allocations: 0.9961 MB / 309.9 MB, free: 49.22 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.1965, allocations: 271.4 kB / 310.1 MB, free: 49.15 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003136/0.1968, allocations: 116.7 kB / 310.3 MB, free: 49.13 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07989/0.2767, allocations: 25.18 MB / 335.4 MB, free: 32.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.2768, allocations: 39.59 kB / 335.5 MB, free: 32.85 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.305e-06/0.2768, allocations: 0 / 335.5 MB, free: 32.85 MB / 286.1 MB Notification: Performance of matching and sorting (n=33): time 0.006599/0.2834, allocations: 1.522 MB / 337 MB, free: 31.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.768e-05/0.2834, allocations: 110.8 kB / 337.1 MB, free: 31.21 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.562e-05/0.2835, allocations: 126.4 kB / 337.2 MB, free: 31.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.2835, allocations: 29.7 kB / 337.3 MB, free: 31.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.865e-05/0.2835, allocations: 110.7 kB / 337.4 MB, free: 30.94 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.377e-05/0.2836, allocations: 123.2 kB / 337.5 MB, free: 30.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.2837, allocations: 73.75 kB / 337.6 MB, free: 30.76 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.236e-05/0.2837, allocations: 326.8 kB / 337.9 MB, free: 30.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.2841, allocations: 131.9 kB / 338 MB, free: 30.3 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003618/0.2844, allocations: 206.3 kB / 338.2 MB, free: 30.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006932/0.2851, allocations: 346.3 kB / 338.5 MB, free: 29.71 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2851, allocations: 0 / 338.5 MB, free: 29.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009789/0.2861, allocations: 442.4 kB / 339 MB, free: 29.28 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2861, allocations: 6.188 kB / 339 MB, free: 29.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.2861, allocations: 0 / 339 MB, free: 29.27 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00024/0.2864, allocations: 36.84 kB / 339 MB, free: 29.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004583/0.2868, allocations: 87.88 kB / 339.1 MB, free: 29.15 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002519/0.2871, allocations: 0.5564 MB / 339.7 MB, free: 28.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002744/0.2874, allocations: 19.98 kB / 339.7 MB, free: 28.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.282e-05/0.2874, allocations: 15.98 kB / 339.7 MB, free: 28.53 MB / 286.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.0001121/0.2875, allocations: 141.1 kB / 339.8 MB, free: 28.39 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.2876, allocations: 31.84 kB / 339.9 MB, free: 28.36 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001721/0.2894, allocations: 1.507 MB / 341.4 MB, free: 26.85 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.2894, allocations: 15.97 kB / 341.4 MB, free: 26.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2894, allocations: 4 kB / 341.4 MB, free: 26.83 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2894, allocations: 0 / 341.4 MB, free: 26.83 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002313/0.2917, allocations: 1.909 MB / 343.3 MB, free: 24.89 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.2917, allocations: 0 / 343.3 MB, free: 24.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004424/0.2921, allocations: 83.86 kB / 343.4 MB, free: 24.81 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002995/0.2924, allocations: 72.92 kB / 343.5 MB, free: 24.74 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/0.2925, allocations: 15.98 kB / 343.5 MB, free: 24.72 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002274/0.2927, allocations: 0.5952 MB / 344.1 MB, free: 24.1 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.2927, allocations: 0 / 344.1 MB, free: 24.1 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.2945, allocations: 1.756 MB / 345.8 MB, free: 22.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.576e-05/0.2945, allocations: 57.81 kB / 345.9 MB, free: 22.28 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.076e-05/0.2946, allocations: 12.94 kB / 345.9 MB, free: 22.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003756/0.295, allocations: 19.98 kB / 345.9 MB, free: 22.25 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.611e-05/0.295, allocations: 35.94 kB / 345.9 MB, free: 22.21 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.042e-05/0.295, allocations: 15.98 kB / 346 MB, free: 22.2 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.557e-05/0.2951, allocations: 95.2 kB / 346.1 MB, free: 22.1 MB / 286.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2951, allocations: 0 / 346.1 MB, free: 22.1 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.002311/0.2974, allocations: 0.9653 MB / 347 MB, free: 21.17 MB / 286.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.003662/0.3011, allocations: 1.289 MB / 348.3 MB, free: 19.99 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.3023, allocations: 0.6091 MB / 348.9 MB, free: 19.38 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3023, allocations: 0 / 348.9 MB, free: 19.38 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006372/0.3029, allocations: 466 kB / 349.4 MB, free: 18.93 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007564/0.3037, allocations: 96.3 kB / 349.5 MB, free: 18.84 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.3056, allocations: 1.238 MB / 350.7 MB, free: 17.57 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000133/0.3057, allocations: 208.3 kB / 350.9 MB, free: 17.34 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002917/0.306, allocations: 133.8 kB / 351 MB, free: 17.21 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.3061, allocations: 40.48 kB / 351.1 MB, free: 17.17 MB / 286.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3061, allocations: 0 / 351.1 MB, free: 17.17 MB / 286.1 MB Notification: Performance of Templates: time 0.04649/0.3526, allocations: 36.44 MB / 387.5 MB, free: 12.85 MB / 318.1 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: 6.845322217792273]