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.002604/0.002604, allocations: 198.8 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.711/2.711, allocations: 226.5 MB / 245.3 MB, free: 6.535 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001388/0.001388, allocations: 101.1 kB / 297.4 MB, free: 6.719 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004369/0.0004371, allocations: 4 kB / 357.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5218/0.5223, allocations: 51.3 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 12.48/13, allocations: 2.788 GB / 3.187 GB, free: 137.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000319/13, allocations: 69.72 kB / 3.187 GB, free: 137.8 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4256/13.43, allocations: 108.4 MB / 3.293 GB, free: 30.89 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.975e-06/13.43, allocations: 0 / 3.293 GB, free: 30.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.519e-05/13.43, allocations: 0 / 3.293 GB, free: 30.89 MB / 458.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.01297/13.44, allocations: 1.162 MB / 3.294 GB, free: 29.67 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.323e-05/13.44, allocations: 12.03 kB / 3.294 GB, free: 29.66 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007794/13.44, allocations: 56.7 kB / 3.294 GB, free: 29.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/13.44, allocations: 220.2 kB / 3.294 GB, free: 29.35 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.303e-05/13.44, allocations: 12.66 kB / 3.294 GB, free: 29.34 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.182e-05/13.44, allocations: 16.28 kB / 3.294 GB, free: 29.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/13.44, allocations: 394.3 kB / 3.295 GB, free: 28.91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/13.44, allocations: 4.125 kB / 3.295 GB, free: 28.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.61e-05/13.44, allocations: 15.94 kB / 3.295 GB, free: 28.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/13.44, allocations: 4 kB / 3.295 GB, free: 28.89 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002022/13.44, allocations: 359.6 kB / 3.295 GB, free: 28.54 MB / 458.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.00201/13.45, allocations: 1.196 MB / 3.296 GB, free: 27.24 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001322/13.45, allocations: 283.7 kB / 3.297 GB, free: 26.94 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004258/13.45, allocations: 118.5 kB / 3.297 GB, free: 26.81 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.7354/14.18, allocations: 52.31 MB / 3.348 GB, free: 72.43 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.072e-05/14.18, allocations: 39.28 kB / 3.348 GB, free: 72.39 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 4.458e-06/14.18, allocations: 0 / 3.348 GB, free: 72.39 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.01112/14.19, allocations: 1.622 MB / 3.349 GB, free: 72.11 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/14.19, allocations: 110.5 kB / 3.35 GB, free: 71.99 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/14.19, allocations: 121.4 kB / 3.35 GB, free: 71.89 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.548e-05/14.19, allocations: 32.98 kB / 3.35 GB, free: 71.86 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/14.19, allocations: 108.6 kB / 3.35 GB, free: 71.76 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/14.2, allocations: 120.8 kB / 3.35 GB, free: 71.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-05/14.2, allocations: 8.438 kB / 3.35 GB, free: 71.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/14.2, allocations: 324.1 kB / 3.35 GB, free: 71.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006173/14.2, allocations: 139.9 kB / 3.35 GB, free: 71.39 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006526/14.2, allocations: 203.4 kB / 3.351 GB, free: 71.33 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/14.2, allocations: 367.6 kB / 3.351 GB, free: 71.26 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/14.2, allocations: 3.844 kB / 3.351 GB, free: 71.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001902/14.2, allocations: 427.2 kB / 3.351 GB, free: 71.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.253e-05/14.2, allocations: 7.156 kB / 3.351 GB, free: 71.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/14.2, allocations: 0 / 3.351 GB, free: 71.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004897/14.2, allocations: 41.28 kB / 3.351 GB, free: 71.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007522/14.2, allocations: 94.27 kB / 3.351 GB, free: 71.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00055/14.2, allocations: 0.5447 MB / 3.352 GB, free: 70.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000528/14.2, allocations: 28.12 kB / 3.352 GB, free: 70.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.252e-05/14.2, allocations: 18.33 kB / 3.352 GB, free: 70.68 MB / 458.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.0002609/14.2, allocations: 138.2 kB / 3.352 GB, free: 70.56 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001747/14.2, allocations: 18.31 kB / 3.352 GB, free: 70.55 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003793/14.21, allocations: 1.464 MB / 3.354 GB, free: 70.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.772e-05/14.21, allocations: 28.84 kB / 3.354 GB, free: 70.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/14.21, allocations: 6.156 kB / 3.354 GB, free: 70.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/14.21, allocations: 0 / 3.354 GB, free: 70.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004864/14.21, allocations: 1.992 MB / 3.356 GB, free: 70.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/14.21, allocations: 0 / 3.356 GB, free: 70.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006975/14.21, allocations: 90.52 kB / 3.356 GB, free: 70.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006578/14.21, allocations: 72.03 kB / 3.356 GB, free: 70.01 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.127e-05/14.21, allocations: 18.58 kB / 3.356 GB, free: 70.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004649/14.21, allocations: 0.5895 MB / 3.356 GB, free: 69.49 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/14.21, allocations: 9.938 kB / 3.356 GB, free: 69.49 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003418/14.22, allocations: 1.703 MB / 3.358 GB, free: 69.11 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001824/14.22, allocations: 128.6 kB / 3.358 GB, free: 68.99 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.631e-05/14.22, allocations: 12.72 kB / 3.358 GB, free: 68.99 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006635/14.22, allocations: 32.95 kB / 3.358 GB, free: 68.98 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/14.22, allocations: 28.95 kB / 3.358 GB, free: 68.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.537e-05/14.22, allocations: 14.62 kB / 3.358 GB, free: 68.98 MB / 458.7 MB Notification: Performance of sorting global known variables: time 9.063e-05/14.22, allocations: 95.52 kB / 3.358 GB, free: 68.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.51e-07/14.22, allocations: 0 / 3.358 GB, free: 68.91 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00743/14.23, allocations: 0.973 MB / 3.359 GB, free: 68.91 MB / 458.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.01529/14.24, allocations: 1.263 MB / 3.361 GB, free: 68.81 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00236/14.24, allocations: 0.6048 MB / 3.361 GB, free: 68.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/14.24, allocations: 1.5 kB / 3.361 GB, free: 68.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001284/14.25, allocations: 0.5172 MB / 3.362 GB, free: 68.79 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/14.25, allocations: 88.09 kB / 3.362 GB, free: 68.79 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003745/14.25, allocations: 1.585 MB / 3.363 GB, free: 68.19 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/14.25, allocations: 0.8139 MB / 3.364 GB, free: 67.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/14.25, allocations: 38.97 kB / 3.364 GB, free: 67.49 MB / 458.7 MB Notification: Performance of SimCode: time 1.393e-06/14.25, allocations: 0 / 3.364 GB, free: 67.49 MB / 458.7 MB Notification: Performance of Templates: time 0.05976/14.31, allocations: 21.3 MB / 3.385 GB, free: 66.09 MB / 458.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/jenkins1/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