Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.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/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/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(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000897/0.0008972, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009631/0.009631, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.837/1.837, allocations: 205.4 MB / 222.5 MB, free: 5.797 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4262/0.4262, allocations: 40 MB / 310.7 MB, free: 9.363 MB / 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: ModelicaTest 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.000905/0.0009051, allocations: 16 kB / 379.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.1719, allocations: 57.96 MB / 437.4 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0007408/0.1727, allocations: 218.1 kB / 437.6 MB, free: 1.758 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000756/0.1735, allocations: 296.8 kB / 437.9 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.302e-05/0.1735, allocations: 0 / 437.9 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.474e-05/0.1735, allocations: 0 / 437.9 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.181e-06/0.1736, allocations: 0 / 437.9 MB, free: 1.469 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:47:3-68:15:writable] Warning: Pure function ‘Modelica.Utilities.Streams.readFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.countLines‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Utilities.mo:221:3-287:14:writable] Warning: Pure function ‘ModelicaTest.Utilities.Streams‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0009072/0.1745, allocations: 75.86 kB / 438 MB, free: 1.395 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.537e-05/0.1745, allocations: 7.938 kB / 438 MB, free: 1.387 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.036e-05/0.1746, allocations: 0 / 438 MB, free: 1.387 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.125e-05/0.1746, allocations: 3.938 kB / 438 MB, free: 1.383 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.921e-05/0.1747, allocations: 3.984 kB / 438 MB, free: 1.379 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.739e-06/0.1747, allocations: 0 / 438 MB, free: 1.379 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003358/0.175, allocations: 103.9 kB / 438.1 MB, free: 1.277 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.272e-05/0.175, allocations: 4 kB / 438.1 MB, free: 1.273 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.007e-05/0.1751, allocations: 29.64 kB / 438.1 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000262/0.1754, allocations: 79.88 kB / 438.2 MB, free: 1.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.1754, allocations: 4 kB / 438.2 MB, free: 1.156 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1754, allocations: 4 kB / 438.2 MB, free: 1.152 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1754, allocations: 0 / 438.2 MB, free: 1.152 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004686/0.1759, allocations: 353.3 kB / 438.6 MB, free: 0.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.176, allocations: 8.031 kB / 438.6 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.433e-05/0.176, allocations: 4.938 kB / 438.6 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.1761, allocations: 164.4 kB / 438.7 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.1762, allocations: 4.312 kB / 438.7 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.1762, allocations: 384 / 438.7 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001411/0.1763, allocations: 42.19 kB / 438.8 MB, free: 500 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.1764, allocations: 192 / 438.8 MB, free: 500 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.1764, allocations: 7.938 kB / 438.8 MB, free: 492 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1764, allocations: 0 / 438.8 MB, free: 492 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.373e-05/0.1764, allocations: 0 / 438.8 MB, free: 492 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001484/0.1766, allocations: 149.7 kB / 438.9 MB, free: 292 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.495e-05/0.1766, allocations: 14.58 kB / 438.9 MB, free: 268 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.283e-05/0.1766, allocations: 4.859 kB / 438.9 MB, free: 260 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.788e-06/0.1767, allocations: 4.094 kB / 439 MB, free: 256 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.728e-05/0.1767, allocations: 72.19 kB / 439 MB, free: 168 kB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.272e-06/0.1767, allocations: 0 / 439 MB, free: 168 kB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001864/0.1769, allocations: 67.25 kB / 439.1 MB, free: 88 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/0.177, allocations: 77.11 kB / 439.2 MB, free: 15.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.293e-05/0.177, allocations: 89.86 kB / 439.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.177, allocations: 25.7 kB / 439.3 MB, free: 15.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.091e-05/0.1771, allocations: 84.25 kB / 439.4 MB, free: 15.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.1771, allocations: 4 kB / 439.4 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/0.1771, allocations: 13.72 kB / 439.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.648e-05/0.1772, allocations: 314.8 kB / 439.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.857e-06/0.1773, allocations: 0 / 439.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.194e-06/0.1773, allocations: 3.938 kB / 439.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.442e-05/0.1773, allocations: 60.27 kB / 439.7 MB, free: 15.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1773, allocations: 0 / 439.7 MB, free: 15.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.732e-05/0.1774, allocations: 67.45 kB / 439.8 MB, free: 15.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.803e-05/0.1775, allocations: 37.64 kB / 439.8 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1775, allocations: 0 / 439.8 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1775, allocations: 3.938 kB / 439.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.1775, allocations: 4 kB / 439.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.1775, allocations: 3.984 kB / 439.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.108e-05/0.1776, allocations: 0 / 439.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.812e-06/0.1776, allocations: 0 / 439.9 MB, free: 15.23 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 prepare postOptimizeDAE: time 9.736e-05/0.1777, allocations: 135.5 kB / 440 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.198e-05/0.1777, allocations: 8.016 kB / 440 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.041e-05/0.1777, allocations: 7.062 kB / 440 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.1777, allocations: 3.938 kB / 440 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1777, allocations: 3.938 kB / 440 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.1778, allocations: 0 / 440 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.1779, allocations: 149.7 kB / 440.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1779, allocations: 0 / 440.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.1779, allocations: 0 / 440.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1779, allocations: 0 / 440.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.1779, allocations: 7.922 kB / 440.2 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1779, allocations: 0 / 440.2 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1779, allocations: 4 kB / 440.2 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001103/0.178, allocations: 86.84 kB / 440.3 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.075e-05/0.1781, allocations: 81.09 kB / 440.3 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.1781, allocations: 7.938 kB / 440.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.638e-06/0.1781, allocations: 0 / 440.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.033e-05/0.1781, allocations: 4 kB / 440.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.1782, allocations: 0 / 440.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.984e-05/0.1782, allocations: 79.31 kB / 440.4 MB, free: 14.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1782, allocations: 0 / 440.4 MB, free: 14.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.1785, allocations: 28 kB / 440.5 MB, free: 14.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0005774/0.1791, allocations: 286.1 kB / 440.7 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001129/0.1792, allocations: 59.41 kB / 440.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.1792, allocations: 4.062 kB / 440.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.704e-05/0.1793, allocations: 59.39 kB / 440.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.1794, allocations: 0 / 440.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002427/0.1797, allocations: 82.7 kB / 440.9 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.1799, allocations: 0.6692 MB / 441.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.893e-06/0.1799, allocations: 0 / 441.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.221e-05/0.18, allocations: 7.438 kB / 441.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.18, allocations: 0 / 441.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of Templates: time 0.004075/0.184, allocations: 0.9531 MB / 442.6 MB, free: 12.34 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.pipe 2>&1) Environment - environmentSimulation: