Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Media.Examples.WaterTestImplementation.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) 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(Annex60.Media.Examples.WaterTestImplementation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Media.Examples.WaterTestImplementation") translateModel(Annex60.Media.Examples.WaterTestImplementation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Media.Examples.WaterTestImplementation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007159/0.007159, allocations: 102 kB / 15.73 MB, free: 6.035 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.001471/0.001471, allocations: 187.9 kB / 16.67 MB, free: 5.969 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.644/1.644, allocations: 205.1 MB / 222.5 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4463/0.4463, allocations: 54.94 MB / 324.8 MB, free: 60 kB / 254.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: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001567, allocations: 64.98 kB / 456.3 MB, free: 38.43 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.149, allocations: 59.59 MB / 0.5038 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Media.Examples.WaterTestImplementation): time 0.01253/0.1616, allocations: 13.16 MB / 0.5167 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.1637, allocations: 1.61 MB / 0.5182 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.1638, allocations: 4 kB / 0.5182 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005654/0.1645, allocations: 186.9 kB / 0.5184 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005352/0.165, allocations: 314.3 kB / 0.5187 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004521/0.1655, allocations: 193.5 kB / 0.5189 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006032/0.1661, allocations: 0.673 MB / 0.5196 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.1663, allocations: 104.7 kB / 0.5197 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005273/0.1668, allocations: 354.6 kB / 0.52 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003065/0.1671, allocations: 250.9 kB / 0.5202 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.1672, allocations: 23.94 kB / 0.5203 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.1673, allocations: 32 kB / 0.5203 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.866e-05/0.1674, allocations: 71.81 kB / 0.5204 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.1676, allocations: 163.3 kB / 0.5205 GB, free: 9.734 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003989/0.168, allocations: 362.8 kB / 0.5209 GB, free: 9.379 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.168, allocations: 0 / 0.5209 GB, free: 9.379 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.168, allocations: 0 / 0.5209 GB, free: 9.379 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.168, allocations: 0 / 0.5209 GB, free: 9.379 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007867/0.1688, allocations: 0.5613 MB / 0.5214 GB, free: 8.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.003e-05/0.1689, allocations: 8.031 kB / 0.5214 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002823/0.1692, allocations: 44.66 kB / 0.5215 GB, free: 8.719 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004289/0.1696, allocations: 275.8 kB / 0.5217 GB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.1696, allocations: 12.94 kB / 0.5217 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.814e-05/0.1697, allocations: 24.38 kB / 0.5218 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000428/0.1701, allocations: 308.1 kB / 0.522 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.1702, allocations: 0 / 0.522 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.744e-05/0.1702, allocations: 8 kB / 0.5221 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/0.1702, allocations: 23.92 kB / 0.5221 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002535/0.1705, allocations: 165.5 kB / 0.5222 GB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001708/0.1722, allocations: 1.841 MB / 0.524 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001894/0.1724, allocations: 114.5 kB / 0.5241 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.734e-05/0.1725, allocations: 56.94 kB / 0.5242 GB, free: 5.676 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.1725, allocations: 3.984 kB / 0.5242 GB, free: 5.672 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.1726, allocations: 34.56 kB / 0.5242 GB, free: 5.629 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.583e-06/0.1726, allocations: 4 kB / 0.5242 GB, free: 5.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=16): time 0.001234/0.1738, allocations: 0.6428 MB / 0.5249 GB, free: 4.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.932e-05/0.1739, allocations: 59.34 kB / 0.5249 GB, free: 4.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002505/0.1741, allocations: 266.7 kB / 0.5252 GB, free: 4.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.1742, allocations: 37.7 kB / 0.5252 GB, free: 4.527 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.1743, allocations: 195.5 kB / 0.5254 GB, free: 4.328 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/0.1743, allocations: 51.27 kB / 0.5254 GB, free: 4.277 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.904e-05/0.1744, allocations: 61.61 kB / 0.5255 GB, free: 4.211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1745, allocations: 334.8 kB / 0.5258 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.1747, allocations: 59.97 kB / 0.5259 GB, free: 3.816 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.1749, allocations: 157.2 kB / 0.526 GB, free: 3.617 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/0.1752, allocations: 240.6 kB / 0.5263 GB, free: 3.336 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1752, allocations: 7.875 kB / 0.5263 GB, free: 3.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003927/0.1756, allocations: 278.1 kB / 0.5265 GB, free: 3.047 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.1756, allocations: 8 kB / 0.5265 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.1756, allocations: 15.86 kB / 0.5266 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.097e-05/0.1757, allocations: 20.86 kB / 0.5266 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002429/0.176, allocations: 67.91 kB / 0.5266 GB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.1771, allocations: 1.391 MB / 0.528 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.1772, allocations: 8 kB / 0.528 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.1772, allocations: 12 kB / 0.528 GB, free: 1.387 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.0001384/0.1774, allocations: 153.9 kB / 0.5282 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.7e-05/0.1774, allocations: 31.61 kB / 0.5282 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.036e-05/0.1775, allocations: 26.12 kB / 0.5282 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1775, allocations: 4 kB / 0.5282 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1775, allocations: 4 kB / 0.5282 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003552/0.1779, allocations: 459.7 kB / 0.5287 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007901/0.1787, allocations: 0.5649 MB / 0.5292 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.1787, allocations: 4 kB / 0.5292 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.1789, allocations: 43.91 kB / 0.5293 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.1789, allocations: 7.875 kB / 0.5293 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.1789, allocations: 4 kB / 0.5293 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1789, allocations: 0 / 0.5293 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.1789, allocations: 7.984 kB / 0.5293 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000401/0.1793, allocations: 327.6 kB / 0.5296 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.235e-05/0.1794, allocations: 100.8 kB / 0.5297 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.1794, allocations: 7.938 kB / 0.5297 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001805/0.1796, allocations: 8.062 kB / 0.5297 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-05/0.1797, allocations: 15.98 kB / 0.5297 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.1797, allocations: 7.984 kB / 0.5297 GB, free: 15.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002063/0.1799, allocations: 205.9 kB / 0.5299 GB, free: 15.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1799, allocations: 0 / 0.5299 GB, free: 15.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000368/0.1803, allocations: 64 kB / 0.53 GB, free: 15.14 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001244/0.1804, allocations: 103.2 kB / 0.5301 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004947/0.1809, allocations: 262.5 kB / 0.5303 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.1809, allocations: 0 / 0.5303 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.854e-05/0.181, allocations: 56.92 kB / 0.5304 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008702/0.1819, allocations: 156.2 kB / 0.5305 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009998/0.1829, allocations: 0.5908 MB / 0.5311 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.1832, allocations: 0.76 MB / 0.5319 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.1835, allocations: 42.97 kB / 0.5319 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.718e-05/0.1835, allocations: 27.42 kB / 0.5319 GB, free: 13.08 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1835, allocations: 0 / 0.5319 GB, free: 13.08 MB / 414.1 MB Notification: Performance of Templates: time 0.009716/0.1932, allocations: 4.761 MB / 0.5366 GB, free: 8.344 MB / 414.1 MB make -j1 -f Annex60_1.0.0_Annex60.Media.Examples.WaterTestImplementation.makefile (rm -f Annex60_1.0.0_Annex60.Media.Examples.WaterTestImplementation.pipe ; mkfifo Annex60_1.0.0_Annex60.Media.Examples.WaterTestImplementation.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Media.Examples.WaterTestImplementation.pipe >> ../files/Annex60_1.0.0_Annex60.Media.Examples.WaterTestImplementation.sim & ./Annex60_1.0.0_Annex60.Media.Examples.WaterTestImplementation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Media.Examples.WaterTestImplementation.pipe 2>&1)