Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001033/0.001034, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007724/0.0007727, allocations: 97.45 kB / 296.8 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.00023, allocations: 8 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2621, allocations: 51.29 MB / 408 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.009669/0.2718, allocations: 12.03 MB / 420.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008502/0.2804, allocations: 10.71 MB / 430.8 MB, free: 4.883 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.2806, allocations: 0 / 430.8 MB, free: 4.883 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003105/0.2809, allocations: 55.67 kB / 430.8 MB, free: 4.828 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002475/0.2811, allocations: 79.5 kB / 430.9 MB, free: 4.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01011/0.2913, allocations: 3.885 MB / 434.8 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003111/0.2916, allocations: 246.8 kB / 435 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.766e-05/0.2917, allocations: 13.45 kB / 435 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004193/0.2921, allocations: 179.2 kB / 435.2 MB, free: 456 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.2922, allocations: 67.75 kB / 435.3 MB, free: 388 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.2923, allocations: 4 kB / 435.3 MB, free: 384 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01155/0.3038, allocations: 6.684 MB / 442 MB, free: 9.684 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.742e-05/0.304, allocations: 19.92 kB / 442 MB, free: 9.664 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.3041, allocations: 97.42 kB / 442.1 MB, free: 9.562 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004661/0.3088, allocations: 2.596 MB / 444.7 MB, free: 6.961 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.3088, allocations: 0 / 444.7 MB, free: 6.961 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3088, allocations: 0 / 444.7 MB, free: 6.961 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.3088, allocations: 0 / 444.7 MB, free: 6.961 MB / 314.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.004656/0.3135, allocations: 1.1 MB / 445.8 MB, free: 5.809 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.3135, allocations: 12.03 kB / 445.8 MB, free: 5.797 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004745/0.314, allocations: 56.7 kB / 445.8 MB, free: 5.742 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.3143, allocations: 220.1 kB / 446.1 MB, free: 5.488 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.3143, allocations: 12.66 kB / 446.1 MB, free: 5.477 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.581e-05/0.3144, allocations: 20.28 kB / 446.1 MB, free: 5.457 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.3157, allocations: 395.3 kB / 446.5 MB, free: 5.043 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.3157, allocations: 0 / 446.5 MB, free: 5.043 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.822e-05/0.3157, allocations: 8 kB / 446.5 MB, free: 5.035 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.3158, allocations: 4 kB / 446.5 MB, free: 5.031 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.3171, allocations: 372.2 kB / 446.9 MB, free: 4.668 MB / 314.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.001404/0.3185, allocations: 1.195 MB / 448 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008716/0.3194, allocations: 283.8 kB / 448.3 MB, free: 3.066 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002891/0.3197, allocations: 122.8 kB / 448.4 MB, free: 2.938 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09307/0.4128, allocations: 53 MB / 0.4897 GB, free: 7.281 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.488e-05/0.4129, allocations: 46.55 kB / 0.4897 GB, free: 7.227 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 2.154e-06/0.4129, allocations: 0 / 0.4897 GB, free: 7.227 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.006586/0.4195, allocations: 1.615 MB / 0.4913 GB, free: 5.559 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.129e-05/0.4196, allocations: 114.8 kB / 0.4914 GB, free: 5.422 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.4197, allocations: 121.8 kB / 0.4915 GB, free: 5.293 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.4197, allocations: 29.7 kB / 0.4916 GB, free: 5.258 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.505e-05/0.4198, allocations: 100.5 kB / 0.4917 GB, free: 5.156 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.861e-05/0.4199, allocations: 122.3 kB / 0.4918 GB, free: 5.035 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.343e-05/0.4199, allocations: 4 kB / 0.4918 GB, free: 5.031 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.42, allocations: 326.8 kB / 0.4921 GB, free: 4.703 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.4204, allocations: 135.9 kB / 0.4922 GB, free: 4.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003909/0.4208, allocations: 210.8 kB / 0.4924 GB, free: 4.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007545/0.4216, allocations: 363 kB / 0.4928 GB, free: 3.961 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.4216, allocations: 4 kB / 0.4928 GB, free: 3.957 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001023/0.4226, allocations: 429.9 kB / 0.4932 GB, free: 3.527 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.4227, allocations: 4 kB / 0.4932 GB, free: 3.523 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.4227, allocations: 4 kB / 0.4932 GB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000228/0.4229, allocations: 40.98 kB / 0.4932 GB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004704/0.4234, allocations: 87.88 kB / 0.4933 GB, free: 3.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003575/0.4238, allocations: 0.5562 MB / 0.4939 GB, free: 2.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.4241, allocations: 27.98 kB / 0.4939 GB, free: 2.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.968e-05/0.4241, allocations: 19.98 kB / 0.4939 GB, free: 2.762 MB / 378.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,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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001516/0.4243, allocations: 134.4 kB / 0.494 GB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.431e-05/0.4244, allocations: 15.91 kB / 0.4941 GB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.4264, allocations: 1.466 MB / 0.4955 GB, free: 1.133 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.471e-05/0.4265, allocations: 23.97 kB / 0.4955 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.4265, allocations: 3.938 kB / 0.4955 GB, free: 1.105 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.4265, allocations: 0 / 0.4955 GB, free: 1.105 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.164/0.5905, allocations: 1.974 MB / 0.4974 GB, free: 99.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.5906, allocations: 1.969 kB / 0.4974 GB, free: 99.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005133/0.5911, allocations: 91.06 kB / 0.4975 GB, free: 99.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003761/0.5915, allocations: 74.75 kB / 0.4976 GB, free: 99.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.46e-05/0.5916, allocations: 15.66 kB / 0.4976 GB, free: 99.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000278/0.5918, allocations: 0.5908 MB / 0.4982 GB, free: 98.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5919, allocations: 3.016 kB / 0.4982 GB, free: 98.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002139/0.594, allocations: 1.705 MB / 0.4999 GB, free: 97.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.071e-05/0.5941, allocations: 124.9 kB / 0.5 GB, free: 97.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.428e-05/0.5941, allocations: 11.92 kB / 0.5 GB, free: 97.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003736/0.5945, allocations: 29.69 kB / 0.5 GB, free: 97.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.9e-05/0.5946, allocations: 32.66 kB / 0.5 GB, free: 97.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.472e-05/0.5946, allocations: 18.84 kB / 0.5001 GB, free: 97.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.177e-05/0.5947, allocations: 89.55 kB / 0.5001 GB, free: 97.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5947, allocations: 5.5 kB / 0.5002 GB, free: 97.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002396/0.5971, allocations: 0.9613 MB / 0.5011 GB, free: 97.66 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004191/0.6013, allocations: 1.139 MB / 0.5022 GB, free: 97.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.6026, allocations: 0.6013 MB / 0.5028 GB, free: 97.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6026, allocations: 1.312 kB / 0.5028 GB, free: 97.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007745/0.6034, allocations: 0.5124 MB / 0.5033 GB, free: 97.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007198/0.6041, allocations: 86.56 kB / 0.5034 GB, free: 97.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002264/0.6064, allocations: 1.59 MB / 0.5049 GB, free: 96.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.6066, allocations: 0.8214 MB / 0.5057 GB, free: 95.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.6067, allocations: 37.97 kB / 0.5058 GB, free: 95.47 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.6067, allocations: 0 / 0.5058 GB, free: 95.47 MB / 378.7 MB Notification: Performance of Templates: time 0.0241/0.6308, allocations: 21.89 MB / 0.5271 GB, free: 75.24 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches