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.001039/0.001039, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00142/0.002459, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001048/0.001048, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001328/0.002376, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.922/0.922, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07664/0.9986, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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: 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 1.913e-06/1.913e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.171e-05/3.362e-05, allocations: 8.781 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01767/0.01771, allocations: 13.09 MB / 257.6 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01432/0.03202, allocations: 11.31 MB / 268.9 MB, free: 5.836 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.03213, allocations: 0 / 268.9 MB, free: 5.836 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002782/0.03241, allocations: 71.5 kB / 269 MB, free: 5.766 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002747/0.03268, allocations: 87.31 kB / 269.1 MB, free: 5.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01055/0.04323, allocations: 4.609 MB / 273.7 MB, free: 1.055 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002784/0.04351, allocations: 234.9 kB / 273.9 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.716e-05/0.04356, allocations: 14.22 kB / 273.9 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003698/0.04393, allocations: 227.3 kB / 274.1 MB, free: 0.582 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.629e-05/0.04403, allocations: 63.86 kB / 274.2 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.04404, allocations: 8 kB / 274.2 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1088/0.1528, allocations: 7.172 MB / 281.4 MB, free: 3.898 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.564e-05/0.1529, allocations: 17.81 kB / 281.4 MB, free: 3.898 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.149e-05/0.153, allocations: 43.5 kB / 281.4 MB, free: 3.898 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007006/0.16, allocations: 3.768 MB / 285.2 MB, free: 3.844 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.541e-05/0.16, allocations: 0 / 285.2 MB, free: 3.844 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.16, allocations: 1.312 kB / 285.2 MB, free: 3.844 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.16, allocations: 0.9688 kB / 285.2 MB, free: 3.844 MB / 266.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.003152/0.1631, allocations: 1.332 MB / 286.5 MB, free: 19.26 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.1632, allocations: 8.219 kB / 286.5 MB, free: 19.26 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002874/0.1635, allocations: 89.23 kB / 286.6 MB, free: 19.25 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.1636, allocations: 144.6 kB / 286.8 MB, free: 19.11 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.1636, allocations: 9.375 kB / 286.8 MB, free: 19.11 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.251e-05/0.1637, allocations: 24.08 kB / 286.8 MB, free: 19.11 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004988/0.1642, allocations: 396.2 kB / 287.2 MB, free: 18.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1642, allocations: 1.953 kB / 287.2 MB, free: 18.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.1642, allocations: 14.88 kB / 287.2 MB, free: 18.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.1642, allocations: 6.062 kB / 287.2 MB, free: 18.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003507/0.1646, allocations: 211 kB / 287.4 MB, free: 18.93 MB / 282.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.0006451/0.1652, allocations: 0.8995 MB / 288.3 MB, free: 18.19 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003156/0.1655, allocations: 226.8 kB / 288.5 MB, free: 18.12 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.179e-05/0.1656, allocations: 60.72 kB / 288.6 MB, free: 18.1 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1414/0.307, allocations: 67.31 MB / 355.9 MB, free: 5.219 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.307, allocations: 34.56 kB / 356 MB, free: 5.176 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.066e-06/0.307, allocations: 4 kB / 356 MB, free: 5.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.008517/0.3155, allocations: 1.205 MB / 357.2 MB, free: 3.969 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/0.3156, allocations: 106.8 kB / 357.3 MB, free: 3.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.151e-05/0.3156, allocations: 131.5 kB / 357.4 MB, free: 3.707 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.3156, allocations: 33.7 kB / 357.4 MB, free: 3.668 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.48e-05/0.3157, allocations: 104.6 kB / 357.5 MB, free: 3.562 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.164e-05/0.3158, allocations: 128.8 kB / 357.7 MB, free: 3.449 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.687e-05/0.3158, allocations: 63.7 kB / 357.7 MB, free: 3.387 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.624e-05/0.3159, allocations: 325.5 kB / 358 MB, free: 3.066 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.149e-05/0.316, allocations: 63.16 kB / 358.1 MB, free: 3.008 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.3161, allocations: 128.7 kB / 358.2 MB, free: 2.867 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004232/0.3204, allocations: 220.4 kB / 358.4 MB, free: 2.637 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3204, allocations: 0 / 358.4 MB, free: 2.637 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003565/0.3207, allocations: 263.1 kB / 358.7 MB, free: 2.387 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.3207, allocations: 4 kB / 358.7 MB, free: 2.383 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3207, allocations: 4 kB / 358.7 MB, free: 2.379 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001276/0.3209, allocations: 20.84 kB / 358.7 MB, free: 2.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.3212, allocations: 99.58 kB / 358.8 MB, free: 2.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002398/0.3214, allocations: 0.5258 MB / 359.3 MB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.3215, allocations: 20.31 kB / 359.4 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.3216, allocations: 8 kB / 359.4 MB, free: 1.691 MB / 330.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,state2.phase,state.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 9.596e-05/0.3217, allocations: 140.5 kB / 359.5 MB, free: 1.547 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.289e-05/0.3217, allocations: 19.98 kB / 359.5 MB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008851/0.3226, allocations: 0.8823 MB / 360.4 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.051e-05/0.3226, allocations: 24.38 kB / 360.4 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.3226, allocations: 0 / 360.4 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/0.3227, allocations: 4 kB / 360.4 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004254/0.3269, allocations: 1.075 MB / 361.5 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.3269, allocations: 4 kB / 361.5 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002652/0.3272, allocations: 83.3 kB / 361.6 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/0.3272, allocations: 51.53 kB / 361.7 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001844/0.3274, allocations: 59.69 kB / 361.7 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.715e-05/0.3274, allocations: 15.98 kB / 361.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002019/0.3276, allocations: 0.5217 MB / 362.2 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3276, allocations: 7.469 kB / 362.3 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007871/0.3284, allocations: 0.9952 MB / 363.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.3285, allocations: 15.56 kB / 363.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.3287, allocations: 15.98 kB / 363.3 MB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002779/0.3289, allocations: 31.03 kB / 363.3 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.329, allocations: 11.98 kB / 363.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.979e-05/0.329, allocations: 24.44 kB / 363.3 MB, free: 13.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.329, allocations: 0 / 363.3 MB, free: 13.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002927/0.3319, allocations: 0.9785 MB / 364.3 MB, free: 12.71 MB / 346.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.003143/0.3351, allocations: 1.381 MB / 365.7 MB, free: 11.44 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004513/0.3355, allocations: 321.8 kB / 366 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/0.3355, allocations: 7.125 kB / 366 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002164/0.3357, allocations: 227.5 kB / 366.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.3361, allocations: 107 kB / 366.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.3393, allocations: 1.02 MB / 367.4 MB, free: 9.793 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.728e-05/0.3393, allocations: 131.7 kB / 367.5 MB, free: 9.641 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001916/0.3395, allocations: 137 kB / 367.6 MB, free: 9.512 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.3397, allocations: 127.3 kB / 367.8 MB, free: 9.387 MB / 346.7 MB Notification: Performance of SimCode: time 8.72e-07/0.3397, allocations: 0 / 367.8 MB, free: 9.387 MB / 346.7 MB Notification: Performance of Templates: time 0.03774/0.3775, allocations: 41.66 MB / 409.4 MB, free: 15.86 MB / 394.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.085604760795832]