Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000967/0.000967, allocations: 105.2 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009351/0.0009352, allocations: 47.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2064, allocations: 50.46 MB / 407 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01155/0.218, allocations: 13.79 MB / 420.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.2282, allocations: 12.5 MB / 433.3 MB, free: 1.426 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.387e-05/0.2284, allocations: 0 / 433.3 MB, free: 1.426 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003087/0.2287, allocations: 67.69 kB / 433.4 MB, free: 1.359 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002424/0.229, allocations: 79.48 kB / 433.5 MB, free: 1.281 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01253/0.2415, allocations: 4.006 MB / 437.5 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000396/0.2419, allocations: 274.9 kB / 437.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.439e-05/0.242, allocations: 9.453 kB / 437.8 MB, free: 13.01 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000443/0.2424, allocations: 187.4 kB / 437.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/0.2426, allocations: 71.69 kB / 438 MB, free: 12.75 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.2426, allocations: 4 kB / 438 MB, free: 12.75 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01167/0.2543, allocations: 6.915 MB / 444.9 MB, free: 5.828 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.432e-05/0.2544, allocations: 23.92 kB / 444.9 MB, free: 5.805 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.2545, allocations: 67.72 kB / 445 MB, free: 5.738 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006373/0.2609, allocations: 3.895 MB / 448.9 MB, free: 1.836 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2609, allocations: 4 kB / 448.9 MB, free: 1.832 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2609, allocations: 0 / 448.9 MB, free: 1.832 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.259e-06/0.2609, allocations: 0 / 448.9 MB, free: 1.832 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.004093/0.265, allocations: 1.154 MB / 450.1 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.2651, allocations: 12.03 kB / 450.1 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004341/0.2655, allocations: 48.8 kB / 450.1 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/0.2658, allocations: 220.1 kB / 450.3 MB, free: 324 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.2658, allocations: 20.38 kB / 450.4 MB, free: 304 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.577e-05/0.2658, allocations: 12.38 kB / 450.4 MB, free: 292 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.2671, allocations: 388.5 kB / 450.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.2671, allocations: 4 kB / 450.8 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.2671, allocations: 4 kB / 450.8 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.2672, allocations: 4 kB / 450.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/0.2685, allocations: 355.5 kB / 451.1 MB, free: 15.52 MB / 330.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.001281/0.2698, allocations: 1.184 MB / 452.3 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007756/0.2706, allocations: 280.3 kB / 452.6 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/0.2709, allocations: 114.9 kB / 452.7 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.101/0.3718, allocations: 52.58 MB / 0.4934 GB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/0.3719, allocations: 38.56 kB / 0.4935 GB, free: 2.523 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 2.184e-06/0.3719, allocations: 0 / 0.4935 GB, free: 2.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.00669/0.3786, allocations: 1.582 MB / 0.495 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.3787, allocations: 110.9 kB / 0.4951 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.954e-05/0.3788, allocations: 117.8 kB / 0.4952 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.3789, allocations: 29.7 kB / 0.4952 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.788e-05/0.3789, allocations: 104.5 kB / 0.4953 GB, free: 500 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.86e-05/0.379, allocations: 122.3 kB / 0.4955 GB, free: 376 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.3791, allocations: 65.69 kB / 0.4955 GB, free: 304 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.1627/0.5418, allocations: 322.8 kB / 0.4958 GB, free: 99.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005353/0.5424, allocations: 135.9 kB / 0.496 GB, free: 99.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004648/0.5429, allocations: 194.2 kB / 0.4961 GB, free: 99.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008379/0.5437, allocations: 352.9 kB / 0.4965 GB, free: 99.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.5437, allocations: 1.094 kB / 0.4965 GB, free: 99.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001143/0.5449, allocations: 423.9 kB / 0.4969 GB, free: 99.42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.5449, allocations: 6.781 kB / 0.4969 GB, free: 99.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.5449, allocations: 2.5 kB / 0.4969 GB, free: 99.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002444/0.5452, allocations: 37.44 kB / 0.4969 GB, free: 99.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004934/0.5457, allocations: 91.41 kB / 0.497 GB, free: 99.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00028/0.546, allocations: 0.5484 MB / 0.4976 GB, free: 98.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003026/0.5463, allocations: 30.91 kB / 0.4976 GB, free: 98.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-05/0.5464, allocations: 17.25 kB / 0.4976 GB, free: 98.86 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 (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.0001415/0.5465, allocations: 143.4 kB / 0.4977 GB, free: 98.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.5466, allocations: 15.19 kB / 0.4978 GB, free: 98.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001834/0.5485, allocations: 1.454 MB / 0.4992 GB, free: 98.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.5485, allocations: 23.05 kB / 0.4992 GB, free: 98.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.5485, allocations: 3.969 kB / 0.4992 GB, free: 98.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.5485, allocations: 0.875 kB / 0.4992 GB, free: 98.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002663/0.5512, allocations: 1.967 MB / 0.5011 GB, free: 97.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.5512, allocations: 1.469 kB / 0.5011 GB, free: 97.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000423/0.5516, allocations: 84.61 kB / 0.5012 GB, free: 97.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002847/0.5519, allocations: 69.97 kB / 0.5013 GB, free: 97.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.438e-05/0.552, allocations: 21.77 kB / 0.5013 GB, free: 97.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002484/0.5522, allocations: 0.5833 MB / 0.5019 GB, free: 96.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5522, allocations: 1.625 kB / 0.5019 GB, free: 96.49 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1674/0.7197, allocations: 64.53 MB / 0.5649 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.021e-05/0.7198, allocations: 132.4 kB / 0.565 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.49e-05/0.7198, allocations: 8 kB / 0.565 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003572/0.7202, allocations: 31.88 kB / 0.565 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.859e-05/0.7203, allocations: 28.09 kB / 0.5651 GB, free: 34.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.7203, allocations: 23.97 kB / 0.5651 GB, free: 33.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.255e-05/0.7204, allocations: 95.2 kB / 0.5652 GB, free: 33.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.7204, allocations: 0 / 0.5652 GB, free: 33.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00803/0.7284, allocations: 3.249 MB / 0.5684 GB, free: 30.73 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 (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.01584/0.7443, allocations: 2.424 MB / 0.5707 GB, free: 28.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001362/0.7457, allocations: 0.6156 MB / 0.5713 GB, free: 27.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.7457, allocations: 0 / 0.5713 GB, free: 27.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006516/0.7463, allocations: 0.5186 MB / 0.5718 GB, free: 27.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000748/0.7471, allocations: 86.67 kB / 0.5719 GB, free: 27.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00296/0.7501, allocations: 2.34 MB / 0.5742 GB, free: 24.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/0.7503, allocations: 0.8655 MB / 0.575 GB, free: 23.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004017/0.7507, allocations: 154.8 kB / 0.5752 GB, free: 23.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.7509, allocations: 47.42 kB / 0.5752 GB, free: 23.77 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.7509, allocations: 0 / 0.5752 GB, free: 23.77 MB / 378.7 MB Notification: Performance of Templates: time 0.3241/1.075, allocations: 144.5 MB / 0.7164 GB, free: 100.2 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_trunk_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches