Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.007789/0.007789, allocations: 107.8 kB / 21.98 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001979/0.001979, allocations: 216.4 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.495/1.495, allocations: 230.6 MB / 259 MB, free: 8.031 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Media.Examples.WaterIF97") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 63.89 kB / 379.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.283, allocations: 53.37 MB / 433.1 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01882/0.3018, allocations: 13.13 MB / 446.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01665/0.3184, allocations: 11.63 MB / 457.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.3186, allocations: 0 / 457.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003943/0.319, allocations: 67.56 kB / 458 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003407/0.3193, allocations: 83.42 kB / 458.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01583/0.3351, allocations: 5.097 MB / 463.2 MB, free: 8.883 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005039/0.3356, allocations: 238.9 kB / 463.4 MB, free: 8.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.017e-05/0.3357, allocations: 5.641 kB / 463.4 MB, free: 8.637 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005276/0.3362, allocations: 207.2 kB / 463.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.3364, allocations: 71.7 kB / 463.7 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.3364, allocations: 11.98 kB / 463.7 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01438/0.3508, allocations: 7.013 MB / 470.7 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.3509, allocations: 27.89 kB / 470.7 MB, free: 1.305 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.351, allocations: 67.73 kB / 470.8 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01123/0.3623, allocations: 3.89 MB / 474.7 MB, free: 13.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3623, allocations: 3.938 kB / 474.7 MB, free: 13.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3623, allocations: 0 / 474.7 MB, free: 13.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.3623, allocations: 0 / 474.7 MB, free: 13.34 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.005137/0.3674, allocations: 1.095 MB / 475.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3675, allocations: 8.031 kB / 475.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005103/0.368, allocations: 44.84 kB / 475.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003721/0.3684, allocations: 170.2 kB / 476 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.633e-05/0.3684, allocations: 12.66 kB / 476 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.948e-05/0.3685, allocations: 16.38 kB / 476 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.3698, allocations: 396.8 kB / 476.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.3698, allocations: 3.938 kB / 476.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.778e-05/0.3699, allocations: 8 kB / 476.4 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3699, allocations: 4 kB / 476.4 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001456/0.3713, allocations: 347.6 kB / 476.8 MB, free: 11.16 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.001681/0.373, allocations: 1.152 MB / 477.9 MB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009094/0.3739, allocations: 271.8 kB / 478.2 MB, free: 9.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002843/0.3742, allocations: 110.9 kB / 478.3 MB, free: 9.508 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09272/0.4669, allocations: 26.01 MB / 0.4925 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.494e-05/0.467, allocations: 42.5 kB / 0.4925 GB, free: 15.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.934e-06/0.467, allocations: 4 kB / 0.4925 GB, free: 15.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.007192/0.4742, allocations: 1.509 MB / 0.494 GB, free: 13.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.653e-05/0.4742, allocations: 110.8 kB / 0.4941 GB, free: 13.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.4744, allocations: 125.8 kB / 0.4942 GB, free: 13.6 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.674e-05/0.4744, allocations: 29.7 kB / 0.4942 GB, free: 13.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.411e-05/0.4745, allocations: 112.5 kB / 0.4944 GB, free: 13.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.4746, allocations: 123 kB / 0.4945 GB, free: 13.33 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.4748, allocations: 73.62 kB / 0.4945 GB, free: 13.25 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.4749, allocations: 318.8 kB / 0.4948 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004024/0.4754, allocations: 143.7 kB / 0.495 GB, free: 12.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004486/0.4758, allocations: 194.8 kB / 0.4952 GB, free: 12.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008405/0.4766, allocations: 350.5 kB / 0.4955 GB, free: 12.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.4766, allocations: 8 kB / 0.4955 GB, free: 12.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001656/0.4783, allocations: 426 kB / 0.4959 GB, free: 11.78 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.405e-05/0.4783, allocations: 8 kB / 0.4959 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.4784, allocations: 0 / 0.4959 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005527/0.4789, allocations: 33.06 kB / 0.496 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006542/0.4796, allocations: 95.86 kB / 0.496 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004862/0.4801, allocations: 0.5406 MB / 0.4966 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002953/0.4803, allocations: 24.02 kB / 0.4966 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/0.4804, allocations: 15.98 kB / 0.4966 GB, free: 11.04 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.0002136/0.4806, allocations: 142.3 kB / 0.4967 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.4807, allocations: 15.91 kB / 0.4968 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00243/0.4831, allocations: 1.501 MB / 0.4982 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.538e-05/0.4832, allocations: 24 kB / 0.4983 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.4832, allocations: 0 / 0.4983 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.4832, allocations: 0 / 0.4983 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003301/0.4865, allocations: 1.998 MB / 0.5002 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.4865, allocations: 4 kB / 0.5002 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004698/0.487, allocations: 87.98 kB / 0.5003 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003329/0.4873, allocations: 64.8 kB / 0.5004 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.521e-05/0.4873, allocations: 16.36 kB / 0.5004 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004686/0.4878, allocations: 0.603 MB / 0.501 GB, free: 6.473 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.4878, allocations: 4 kB / 0.501 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002695/0.4905, allocations: 1.745 MB / 0.5027 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.912e-05/0.4906, allocations: 55.47 kB / 0.5027 GB, free: 4.641 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.648e-05/0.4906, allocations: 8 kB / 0.5027 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003674/0.491, allocations: 23.95 kB / 0.5027 GB, free: 4.609 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.533e-05/0.4911, allocations: 27.95 kB / 0.5028 GB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.925e-05/0.4911, allocations: 19.98 kB / 0.5028 GB, free: 4.562 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.651e-05/0.4912, allocations: 91.27 kB / 0.5029 GB, free: 4.473 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4912, allocations: 7.938 kB / 0.5029 GB, free: 4.465 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003939/0.4951, allocations: 0.9747 MB / 0.5038 GB, free: 3.488 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.006675/0.5018, allocations: 1.146 MB / 0.505 GB, free: 2.328 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002947/0.5047, allocations: 0.6052 MB / 0.5055 GB, free: 1.723 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.5047, allocations: 0 / 0.5055 GB, free: 1.723 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.5058, allocations: 468.6 kB / 0.506 GB, free: 1.266 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.5069, allocations: 84.64 kB / 0.5061 GB, free: 1.184 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003469/0.5104, allocations: 1.36 MB / 0.5074 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005985/0.511, allocations: 0.8177 MB / 0.5082 GB, free: 14.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002231/0.5112, allocations: 39.42 kB / 0.5082 GB, free: 14.89 MB / 430.1 MB Notification: Performance of SimCode: time 9.81e-07/0.5112, allocations: 0 / 0.5082 GB, free: 14.89 MB / 430.1 MB Notification: Performance of Templates: time 0.04934/0.5605, allocations: 21.93 MB / 0.5297 GB, free: 8.93 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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.054142483044416]