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.001626/0.001626, allocations: 108.6 kB / 21.18 MB, free: 0.7617 MB / 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.001635/0.001635, allocations: 189.2 kB / 24.48 MB, free: 4.164 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.436/1.436, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.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 0.001601/0.001601, allocations: 43.92 kB / 371.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2599, allocations: 52.19 MB / 423.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01796/0.2778, allocations: 13.03 MB / 436.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01551/0.2933, allocations: 11.61 MB / 448.5 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.2935, allocations: 4 kB / 448.5 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003567/0.2938, allocations: 71.56 kB / 448.6 MB, free: 5.867 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003619/0.2942, allocations: 87.42 kB / 448.7 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01419/0.3084, allocations: 5.089 MB / 453.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004532/0.3088, allocations: 227 kB / 454 MB, free: 484 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.482e-05/0.3089, allocations: 9.578 kB / 454 MB, free: 468 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005223/0.3094, allocations: 207.3 kB / 454.2 MB, free: 260 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001668/0.3096, allocations: 71.75 kB / 454.3 MB, free: 188 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.3096, allocations: 8 kB / 454.3 MB, free: 180 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01463/0.3242, allocations: 7.009 MB / 461.3 MB, free: 9.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.3243, allocations: 27.91 kB / 461.3 MB, free: 9.133 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000146/0.3245, allocations: 71.67 kB / 461.4 MB, free: 9.062 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01079/0.3353, allocations: 3.874 MB / 465.2 MB, free: 5.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.035e-05/0.3353, allocations: 0 / 465.2 MB, free: 5.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3353, allocations: 4 kB / 465.2 MB, free: 5.176 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.3353, allocations: 0 / 465.2 MB, free: 5.176 MB / 366.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.005643/0.3409, allocations: 1.088 MB / 466.3 MB, free: 4.055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.341, allocations: 8.031 kB / 466.3 MB, free: 4.047 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005125/0.3415, allocations: 56.8 kB / 466.4 MB, free: 3.992 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.3418, allocations: 158.3 kB / 466.6 MB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.413e-05/0.3419, allocations: 20.66 kB / 466.6 MB, free: 3.793 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.3419, allocations: 16.33 kB / 466.6 MB, free: 3.777 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.3433, allocations: 392.8 kB / 467 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.3433, allocations: 4 kB / 467 MB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.6e-05/0.3433, allocations: 4 kB / 467 MB, free: 3.355 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.3433, allocations: 7.984 kB / 467 MB, free: 3.348 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.3448, allocations: 359.5 kB / 467.3 MB, free: 2.996 MB / 366.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.001569/0.3463, allocations: 1.152 MB / 468.5 MB, free: 1.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009101/0.3473, allocations: 275.7 kB / 468.8 MB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002847/0.3475, allocations: 114.9 kB / 468.9 MB, free: 1.332 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09066/0.4382, allocations: 25.05 MB / 493.9 MB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.656e-05/0.4383, allocations: 34.56 kB / 494 MB, free: 8.207 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.915e-06/0.4383, allocations: 8 kB / 494 MB, free: 8.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.007415/0.4457, allocations: 1.495 MB / 495.5 MB, free: 6.668 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.695e-05/0.4457, allocations: 110.8 kB / 495.6 MB, free: 6.535 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.446, allocations: 121.8 kB / 495.7 MB, free: 6.406 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.341e-05/0.446, allocations: 37.7 kB / 495.7 MB, free: 6.363 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.4462, allocations: 108.6 kB / 495.8 MB, free: 6.254 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.4463, allocations: 123 kB / 495.9 MB, free: 6.133 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.4464, allocations: 65.47 kB / 496 MB, free: 6.062 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.4466, allocations: 326.8 kB / 496.3 MB, free: 5.734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.447, allocations: 135.9 kB / 496.5 MB, free: 5.602 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004489/0.4474, allocations: 190.8 kB / 496.7 MB, free: 5.391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008515/0.4483, allocations: 350.5 kB / 497 MB, free: 5.023 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4483, allocations: 0 / 497 MB, free: 5.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001153/0.4494, allocations: 430 kB / 497.4 MB, free: 4.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.4495, allocations: 8 kB / 497.4 MB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.4495, allocations: 0 / 497.4 MB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002602/0.4497, allocations: 36.83 kB / 497.5 MB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004858/0.4502, allocations: 92.03 kB / 497.5 MB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005752/0.4508, allocations: 0.5523 MB / 498.1 MB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002999/0.4511, allocations: 19.98 kB / 498.1 MB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-05/0.4511, allocations: 15.98 kB / 498.1 MB, free: 3.844 MB / 398.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.0001807/0.4513, allocations: 143.8 kB / 498.3 MB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.4514, allocations: 15.91 kB / 498.3 MB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002373/0.4538, allocations: 1.502 MB / 499.8 MB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.083e-05/0.4538, allocations: 28 kB / 499.8 MB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.4538, allocations: 4 kB / 499.8 MB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.994e-06/0.4539, allocations: 0 / 499.8 MB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/0.4573, allocations: 2.017 MB / 0.4901 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.4573, allocations: 0 / 0.4901 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004822/0.4577, allocations: 84.05 kB / 0.4902 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003394/0.4581, allocations: 72.69 kB / 0.4902 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.574e-05/0.4581, allocations: 19.98 kB / 0.4902 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000463/0.4586, allocations: 0.5875 MB / 0.4908 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.4586, allocations: 7.969 kB / 0.4908 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002648/0.4612, allocations: 1.733 MB / 0.4925 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.854e-05/0.4613, allocations: 51.52 kB / 0.4926 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.456e-05/0.4614, allocations: 12 kB / 0.4926 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003943/0.4618, allocations: 32.27 kB / 0.4926 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.46e-05/0.4618, allocations: 27.95 kB / 0.4926 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.859e-05/0.4619, allocations: 19.98 kB / 0.4927 GB, free: 13.35 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.519e-05/0.462, allocations: 95.2 kB / 0.4928 GB, free: 13.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.462, allocations: 4 kB / 0.4928 GB, free: 13.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002753/0.4647, allocations: 0.963 MB / 0.4937 GB, free: 12.29 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.004898/0.4696, allocations: 1.141 MB / 0.4948 GB, free: 11.13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001858/0.4715, allocations: 0.6093 MB / 0.4954 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.4715, allocations: 0 / 0.4954 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008954/0.4724, allocations: 468.6 kB / 0.4959 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008407/0.4732, allocations: 88.06 kB / 0.4959 GB, free: 9.988 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002833/0.476, allocations: 1.372 MB / 0.4973 GB, free: 8.562 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.4766, allocations: 0.8138 MB / 0.4981 GB, free: 7.719 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001743/0.4768, allocations: 35.41 kB / 0.4981 GB, free: 7.684 MB / 414.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4768, allocations: 0 / 0.4981 GB, free: 7.684 MB / 414.1 MB Notification: Performance of Templates: time 0.0363/0.5131, allocations: 21.78 MB / 0.5194 GB, free: 1.875 MB / 430.1 MB " [Timeout remaining time 659] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/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: 9.717343759955838]