Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 108.4 kB / 18.34 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 186.9 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 51.92 kB / 282.1 MB, free: 2.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07814/0.07939, allocations: 46.62 MB / 328.7 MB, free: 3.727 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.02991/0.1093, allocations: 32.57 MB / 361.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01614/0.1255, allocations: 15.73 MB / 377 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003084/0.1259, allocations: 7.938 kB / 377 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007719/0.1267, allocations: 270.4 kB / 377.3 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006925/0.1274, allocations: 353.9 kB / 377.7 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1759/0.3034, allocations: 5.786 MB / 383.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001639/0.305, allocations: 1.007 MB / 384.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.3052, allocations: 109.4 kB / 384.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005669/0.3109, allocations: 2.2 MB / 386.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005579/0.3115, allocations: 300 kB / 387 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.288e-05/0.3116, allocations: 40.19 kB / 387.1 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01423/0.3258, allocations: 6.078 MB / 393.2 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002618/0.3261, allocations: 109.1 kB / 393.3 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005222/0.3267, allocations: 228.5 kB / 393.5 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009523/0.3362, allocations: 3.787 MB / 397.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.3362, allocations: 3.812 kB / 397.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.095e-06/0.3362, allocations: 3.562 kB / 397.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.624e-05/0.3363, allocations: 0 / 397.3 MB, free: 11.39 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003321/0.3396, allocations: 0.9946 MB / 398.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.3396, allocations: 7.781 kB / 398.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00138/0.341, allocations: 144 kB / 398.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004359/0.3415, allocations: 339.8 kB / 398.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.3415, allocations: 22.62 kB / 398.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.894e-05/0.3416, allocations: 32.34 kB / 398.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.3426, allocations: 0.5142 MB / 399.3 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.3427, allocations: 6.891 kB / 399.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.04e-05/0.3427, allocations: 17.88 kB / 399.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.3427, allocations: 7.219 kB / 399.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005754/0.3433, allocations: 322.9 kB / 399.7 MB, free: 10.11 MB / 318.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.002489/0.3458, allocations: 2.555 MB / 402.2 MB, free: 7.902 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005482/0.3464, allocations: 271.5 kB / 402.5 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.3466, allocations: 117.2 kB / 402.6 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05984/0.4064, allocations: 31.03 MB / 433.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.4065, allocations: 37.81 kB / 433.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 3.907e-06/0.4065, allocations: 0 / 433.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.003521/0.41, allocations: 1.197 MB / 434.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.4101, allocations: 58.41 kB / 434.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.4104, allocations: 260.1 kB / 435.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.4104, allocations: 34.02 kB / 435.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.4105, allocations: 193 kB / 435.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.57e-05/0.4106, allocations: 108.9 kB / 435.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.4107, allocations: 74.55 kB / 435.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4109, allocations: 340.7 kB / 435.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.411, allocations: 95.53 kB / 436 MB, free: 8.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.4113, allocations: 209.5 kB / 436.2 MB, free: 8.211 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004276/0.4117, allocations: 347.8 kB / 436.6 MB, free: 7.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.4117, allocations: 4 kB / 436.6 MB, free: 7.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006791/0.4124, allocations: 417.4 kB / 437 MB, free: 7.641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.4124, allocations: 5.312 kB / 437 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.4125, allocations: 4.5 kB / 437 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002832/0.4127, allocations: 60.5 kB / 437 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003717/0.4131, allocations: 90.3 kB / 437.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/0.4148, allocations: 2.525 MB / 439.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002246/0.4151, allocations: 14.62 kB / 439.7 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.067e-05/0.4151, allocations: 19.42 kB / 439.7 MB, free: 4.867 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002281/0.4153, allocations: 158 kB / 439.8 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.663e-05/0.4154, allocations: 29.73 kB / 439.9 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.4165, allocations: 0.8636 MB / 440.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.4165, allocations: 15.17 kB / 440.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.4165, allocations: 3.938 kB / 440.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008987/0.4174, allocations: 1.037 MB / 441.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001732/0.4191, allocations: 1.49 MB / 443.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.4192, allocations: 7.922 kB / 443.3 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002204/0.4194, allocations: 47.98 kB / 443.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003199/0.4197, allocations: 79.69 kB / 443.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.4197, allocations: 11.19 kB / 443.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003686/0.4201, allocations: 0.5928 MB / 444 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.4201, allocations: 0 / 444 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009292/0.4211, allocations: 0.8254 MB / 444.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.206e-05/0.4212, allocations: 116.6 kB / 444.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.855e-05/0.4212, allocations: 11.94 kB / 445 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002983/0.4215, allocations: 23.97 kB / 445 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.701e-05/0.4216, allocations: 23.91 kB / 445 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.039e-05/0.4216, allocations: 8 kB / 445 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002467/0.4219, allocations: 243.1 kB / 445.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4219, allocations: 0 / 445.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003601/0.4255, allocations: 0.8589 MB / 446.1 MB, free: 14.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.004171/0.4297, allocations: 0.9567 MB / 447.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009877/0.4307, allocations: 486.9 kB / 447.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.4307, allocations: 2.906 kB / 447.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003592/0.4311, allocations: 253 kB / 447.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.4321, allocations: 195.4 kB / 448 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.4336, allocations: 0.9693 MB / 449 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004589/0.4341, allocations: 0.8211 MB / 449.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003663/0.4344, allocations: 194.1 kB / 450 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.089e-05/0.4345, allocations: 35.44 kB / 450 MB, free: 10.84 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4345, allocations: 0 / 450 MB, free: 10.84 MB / 366.1 MB Notification: Performance of Templates: time 0.04426/0.4788, allocations: 34.75 MB / 484.7 MB, free: 8.125 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/Water/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches