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.001368/0.001368, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001783/0.001783, allocations: 195.5 kB / 16.14 MB, free: 6.656 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.808/1.808, allocations: 205.1 MB / 222 MB, free: 4.746 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.4735/0.4735, allocations: 39.93 MB / 309.3 MB, free: 9.629 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.001322/0.001322, allocations: 62.41 kB / 376.9 MB, free: 13.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.163, allocations: 56.88 MB / 433.8 MB, free: 4.438 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002304/0.1654, allocations: 0.5402 MB / 434.3 MB, free: 3.895 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008592/0.1663, allocations: 312.7 kB / 434.6 MB, free: 3.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.871e-05/0.1663, allocations: 4 kB / 434.6 MB, free: 3.586 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.293e-05/0.1664, allocations: 0 / 434.6 MB, free: 3.586 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.362e-06/0.1664, allocations: 0 / 434.6 MB, free: 3.586 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.00102/0.1674, allocations: 75.52 kB / 434.7 MB, free: 3.516 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.249e-05/0.1675, allocations: 4 kB / 434.7 MB, free: 3.512 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.662e-05/0.1675, allocations: 7.984 kB / 434.7 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.405e-05/0.1676, allocations: 0 / 434.7 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.255e-05/0.1676, allocations: 3.984 kB / 434.7 MB, free: 3.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.226e-06/0.1676, allocations: 0 / 434.7 MB, free: 3.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002141/0.1678, allocations: 103.8 kB / 434.8 MB, free: 3.398 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.046e-05/0.1678, allocations: 0 / 434.8 MB, free: 3.398 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.013e-05/0.1679, allocations: 11.94 kB / 434.8 MB, free: 3.387 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.1681, allocations: 79.81 kB / 434.9 MB, free: 3.309 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.1681, allocations: 0 / 434.9 MB, free: 3.309 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.71e-07/0.1681, allocations: 4 kB / 434.9 MB, free: 3.305 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.1681, allocations: 0 / 434.9 MB, free: 3.305 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.0005251/0.1687, allocations: 357.3 kB / 435.3 MB, free: 2.898 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.046e-05/0.1687, allocations: 12.03 kB / 435.3 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.42e-05/0.1688, allocations: 0.9375 kB / 435.3 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.169, allocations: 164.4 kB / 435.4 MB, free: 2.688 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.169, allocations: 384 / 435.4 MB, free: 2.688 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/0.169, allocations: 8.312 kB / 435.5 MB, free: 2.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001588/0.1692, allocations: 30.27 kB / 435.5 MB, free: 2.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1692, allocations: 192 / 435.5 MB, free: 2.645 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.1692, allocations: 3.938 kB / 435.5 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.1692, allocations: 0 / 435.5 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.181e-05/0.1693, allocations: 7.938 kB / 435.5 MB, free: 2.633 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002021/0.1695, allocations: 149.7 kB / 435.6 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.957e-05/0.1696, allocations: 18.58 kB / 435.7 MB, free: 2.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.059e-05/0.1696, allocations: 8.953 kB / 435.7 MB, free: 2.398 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.1696, allocations: 0 / 435.7 MB, free: 2.398 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.044e-05/0.1697, allocations: 56.27 kB / 435.7 MB, free: 2.328 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1697, allocations: 0 / 435.7 MB, free: 2.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002622/0.1699, allocations: 79.17 kB / 435.8 MB, free: 2.238 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.571e-05/0.1701, allocations: 77.11 kB / 435.9 MB, free: 2.145 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.845e-05/0.1701, allocations: 89.86 kB / 436 MB, free: 2.047 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.1702, allocations: 29.83 kB / 436 MB, free: 2.012 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.812e-05/0.1702, allocations: 84.14 kB / 436.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.656e-05/0.1703, allocations: 0 / 436.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-05/0.1703, allocations: 9.719 kB / 436.1 MB, free: 1.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.1705, allocations: 314.8 kB / 436.4 MB, free: 1.594 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.637e-05/0.1705, allocations: 4 kB / 436.4 MB, free: 1.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.583e-06/0.1706, allocations: 0 / 436.4 MB, free: 1.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.892e-05/0.1706, allocations: 68.31 kB / 436.5 MB, free: 1.508 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1706, allocations: 0 / 436.5 MB, free: 1.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.581e-05/0.1707, allocations: 63.34 kB / 436.5 MB, free: 1.434 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.712e-05/0.1708, allocations: 29.7 kB / 436.6 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1708, allocations: 0 / 436.6 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.1708, allocations: 3.938 kB / 436.6 MB, free: 1.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-06/0.1708, allocations: 0 / 436.6 MB, free: 1.395 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.1709, allocations: 3.984 kB / 436.6 MB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.841e-05/0.1709, allocations: 8 kB / 436.6 MB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.1709, allocations: 0 / 436.6 MB, free: 1.383 MB / 366.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 0.0001103/0.171, allocations: 139.5 kB / 436.7 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.025e-05/0.1711, allocations: 7.938 kB / 436.7 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.484e-05/0.1711, allocations: 7.062 kB / 436.7 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.1711, allocations: 0 / 436.7 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.1711, allocations: 3.938 kB / 436.7 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.1711, allocations: 0 / 436.7 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.1712, allocations: 149.7 kB / 436.9 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1712, allocations: 0 / 436.9 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1712, allocations: 4 kB / 436.9 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.1713, allocations: 4 kB / 436.9 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.1713, allocations: 3.938 kB / 436.9 MB, free: 1.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.1713, allocations: 4 kB / 436.9 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1713, allocations: 0 / 436.9 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.1714, allocations: 94.77 kB / 437 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-05/0.1715, allocations: 77.11 kB / 437.1 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.1715, allocations: 3.938 kB / 437.1 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.706e-06/0.1715, allocations: 0 / 437.1 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.829e-05/0.1715, allocations: 12.02 kB / 437.1 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-06/0.1715, allocations: 4 kB / 437.1 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.81e-05/0.1716, allocations: 75.28 kB / 437.1 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1716, allocations: 0 / 437.1 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.1719, allocations: 31.98 kB / 437.2 MB, free: 0.6641 MB / 366.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.0005301/0.1724, allocations: 268.9 kB / 437.4 MB, free: 416 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.418e-05/0.1725, allocations: 59.41 kB / 437.5 MB, free: 344 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1725, allocations: 3.938 kB / 437.5 MB, free: 340 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.144e-05/0.1726, allocations: 55.41 kB / 437.6 MB, free: 272 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.1727, allocations: 4 kB / 437.6 MB, free: 268 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001982/0.1729, allocations: 82.69 kB / 437.6 MB, free: 156 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.1732, allocations: 0.6731 MB / 438.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.763e-06/0.1732, allocations: 0 / 438.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.618e-06/0.1732, allocations: 7.562 kB / 438.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1732, allocations: 4 kB / 438.3 MB, free: 15.44 MB / 382.1 MB Notification: Performance of Templates: time 0.003991/0.1772, allocations: 0.9647 MB / 439.3 MB, free: 14.48 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.makefile (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)