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.000869/0.0008691, allocations: 194.3 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.213/1.213, allocations: 226.6 MB / 244.3 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007115/0.0007115, allocations: 94.34 kB / 296.4 MB, free: 6.789 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002056/0.0002057, allocations: 4 kB / 356.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1753, allocations: 51.31 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.008591/0.1839, allocations: 12.01 MB / 419.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007568/0.1915, allocations: 10.7 MB / 430.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.268e-05/0.1916, allocations: 0 / 430.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002298/0.1919, allocations: 55.62 kB / 430.3 MB, free: 4.992 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001981/0.1921, allocations: 75.48 kB / 430.3 MB, free: 4.918 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007825/0.1999, allocations: 3.879 MB / 434.2 MB, free: 1.051 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002128/0.2001, allocations: 246.9 kB / 434.5 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.627e-05/0.2002, allocations: 5.453 kB / 434.5 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002941/0.2005, allocations: 183.2 kB / 434.6 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.793e-05/0.2006, allocations: 71.75 kB / 434.7 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.2006, allocations: 4 kB / 434.7 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009541/0.2101, allocations: 6.656 MB / 441.4 MB, free: 9.883 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.375e-05/0.2102, allocations: 27.91 kB / 441.4 MB, free: 9.855 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.905e-05/0.2103, allocations: 49.64 kB / 441.4 MB, free: 9.801 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003354/0.2136, allocations: 2.577 MB / 444 MB, free: 7.219 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2137, allocations: 4 kB / 444 MB, free: 7.215 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2137, allocations: 0 / 444 MB, free: 7.215 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.2137, allocations: 0 / 444 MB, free: 7.215 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.004364/0.218, allocations: 1.115 MB / 445.1 MB, free: 6.047 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.2181, allocations: 8.031 kB / 445.1 MB, free: 6.039 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004372/0.2185, allocations: 55.77 kB / 445.2 MB, free: 5.984 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.2188, allocations: 226.8 kB / 445.4 MB, free: 5.723 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.2188, allocations: 12.28 kB / 445.4 MB, free: 5.711 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.379e-05/0.2189, allocations: 19.94 kB / 445.5 MB, free: 5.691 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.22, allocations: 391.4 kB / 445.8 MB, free: 5.281 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.2201, allocations: 0 / 445.8 MB, free: 5.281 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.2201, allocations: 4 kB / 445.8 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.2201, allocations: 4 kB / 445.8 MB, free: 5.273 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.2215, allocations: 376.2 kB / 446.2 MB, free: 4.906 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.001282/0.2227, allocations: 1.199 MB / 447.4 MB, free: 3.605 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007905/0.2235, allocations: 297.9 kB / 447.7 MB, free: 3.289 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002593/0.2238, allocations: 114.9 kB / 447.8 MB, free: 3.168 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08794/0.3118, allocations: 53 MB / 0.4891 GB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.3118, allocations: 34.75 kB / 0.4891 GB, free: 7.469 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.924e-06/0.3118, allocations: 0 / 0.4891 GB, free: 7.469 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.006278/0.3181, allocations: 1.61 MB / 0.4907 GB, free: 5.805 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.3182, allocations: 106.8 kB / 0.4908 GB, free: 5.676 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.982e-05/0.3183, allocations: 129.7 kB / 0.4909 GB, free: 5.539 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.3183, allocations: 33.7 kB / 0.4909 GB, free: 5.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.921e-05/0.3184, allocations: 104.5 kB / 0.491 GB, free: 5.395 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.831e-05/0.3185, allocations: 114.3 kB / 0.4911 GB, free: 5.281 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-05/0.3185, allocations: 12 kB / 0.4912 GB, free: 5.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3186, allocations: 322.8 kB / 0.4915 GB, free: 4.945 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003594/0.319, allocations: 140.3 kB / 0.4916 GB, free: 4.809 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004099/0.3194, allocations: 210.8 kB / 0.4918 GB, free: 4.578 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.3198, allocations: 160.9 kB / 0.492 GB, free: 4.422 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.3198, allocations: 0 / 0.492 GB, free: 4.422 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009973/0.3208, allocations: 433.9 kB / 0.4924 GB, free: 3.988 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3208, allocations: 8 kB / 0.4924 GB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.3209, allocations: 0 / 0.4924 GB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002222/0.3211, allocations: 36.98 kB / 0.4924 GB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004378/0.3215, allocations: 95.88 kB / 0.4925 GB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003504/0.3219, allocations: 0.5446 MB / 0.493 GB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002803/0.3222, allocations: 28.08 kB / 0.4931 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.375e-05/0.3222, allocations: 15.98 kB / 0.4931 GB, free: 3.234 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.000145/0.3224, allocations: 142.9 kB / 0.4932 GB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.746e-05/0.3225, allocations: 15.81 kB / 0.4932 GB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001993/0.3245, allocations: 1.47 MB / 0.4947 GB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/0.3245, allocations: 19.97 kB / 0.4947 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3245, allocations: 0 / 0.4947 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3245, allocations: 0 / 0.4947 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1423/0.4669, allocations: 1.984 MB / 0.4966 GB, free: 99.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.4669, allocations: 1.25 kB / 0.4966 GB, free: 99.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004809/0.4674, allocations: 91.14 kB / 0.4967 GB, free: 99.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003518/0.4677, allocations: 74.55 kB / 0.4968 GB, free: 99.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.494e-05/0.4678, allocations: 14.42 kB / 0.4968 GB, free: 99.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002518/0.4681, allocations: 0.5888 MB / 0.4974 GB, free: 98.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.4681, allocations: 2.562 kB / 0.4974 GB, free: 98.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001982/0.4701, allocations: 1.702 MB / 0.499 GB, free: 98.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.245e-05/0.4701, allocations: 125.3 kB / 0.4992 GB, free: 98.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.058e-05/0.4702, allocations: 8.781 kB / 0.4992 GB, free: 98.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003556/0.4705, allocations: 24.11 kB / 0.4992 GB, free: 98.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.588e-05/0.4706, allocations: 35.92 kB / 0.4992 GB, free: 98.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.221e-05/0.4706, allocations: 18.52 kB / 0.4992 GB, free: 98.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.675e-05/0.4707, allocations: 88.83 kB / 0.4993 GB, free: 97.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4707, allocations: 1.375 kB / 0.4993 GB, free: 97.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002312/0.473, allocations: 0.9634 MB / 0.5003 GB, free: 97.89 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.003155/0.4762, allocations: 1.149 MB / 0.5014 GB, free: 97.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.4772, allocations: 0.5958 MB / 0.502 GB, free: 97.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4772, allocations: 0 / 0.502 GB, free: 97.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007355/0.478, allocations: 0.5138 MB / 0.5025 GB, free: 97.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006887/0.4787, allocations: 83.39 kB / 0.5025 GB, free: 97.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.4806, allocations: 1.59 MB / 0.5041 GB, free: 96.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.4808, allocations: 0.8239 MB / 0.5049 GB, free: 95.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.481, allocations: 38.84 kB / 0.5049 GB, free: 95.71 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.481, allocations: 4 kB / 0.5049 GB, free: 95.7 MB / 378.7 MB Notification: Performance of Templates: time 0.02275/0.5037, allocations: 21.88 MB / 0.5263 GB, free: 75.78 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