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.001356/0.001357, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001855/0.001855, allocations: 187.3 kB / 16.25 MB, free: 6.145 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.748/1.748, allocations: 205.1 MB / 222.1 MB, free: 4.57 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.4042/0.4042, allocations: 39.94 MB / 309.4 MB, free: 9.211 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.001455/0.001456, allocations: 63.91 kB / 377.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.153, allocations: 56.87 MB / 434 MB, free: 3.727 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001979/0.1551, allocations: 0.5558 MB / 434.5 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008013/0.1559, allocations: 300.7 kB / 434.8 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.613e-05/0.1559, allocations: 0 / 434.8 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.414e-05/0.156, allocations: 0 / 434.8 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.79e-06/0.156, allocations: 0 / 434.8 MB, free: 2.875 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.0008509/0.1568, allocations: 87.64 kB / 434.9 MB, free: 2.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.472e-05/0.1569, allocations: 0 / 434.9 MB, free: 2.793 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.615e-05/0.1569, allocations: 4 kB / 434.9 MB, free: 2.789 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.576e-05/0.1569, allocations: 0 / 434.9 MB, free: 2.789 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.309e-05/0.157, allocations: 3.938 kB / 434.9 MB, free: 2.785 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-06/0.157, allocations: 4 kB / 434.9 MB, free: 2.781 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.1571, allocations: 111.8 kB / 435 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.865e-06/0.1572, allocations: 0 / 435 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.128e-05/0.1572, allocations: 0 / 435 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001538/0.1573, allocations: 79.88 kB / 435.1 MB, free: 2.594 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1574, allocations: 4 kB / 435.1 MB, free: 2.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1574, allocations: 0 / 435.1 MB, free: 2.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1574, allocations: 0 / 435.1 MB, free: 2.59 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.0003397/0.1577, allocations: 365.2 kB / 435.5 MB, free: 2.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001116/0.1578, allocations: 11.89 kB / 435.5 MB, free: 2.164 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.229e-05/0.1579, allocations: 4.938 kB / 435.5 MB, free: 2.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.257e-05/0.158, allocations: 160.4 kB / 435.6 MB, free: 1.965 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-06/0.158, allocations: 384 / 435.6 MB, free: 1.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.293e-05/0.158, allocations: 4.375 kB / 435.6 MB, free: 1.961 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.781e-05/0.1581, allocations: 34.2 kB / 435.7 MB, free: 1.922 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1581, allocations: 192 / 435.7 MB, free: 1.922 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.1581, allocations: 3.938 kB / 435.7 MB, free: 1.918 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.1581, allocations: 0 / 435.7 MB, free: 1.918 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.688e-05/0.1582, allocations: 4 kB / 435.7 MB, free: 1.914 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001322/0.1583, allocations: 153.6 kB / 435.8 MB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001072/0.1584, allocations: 18.61 kB / 435.9 MB, free: 1.688 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.596e-05/0.1584, allocations: 4.859 kB / 435.9 MB, free: 1.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-06/0.1585, allocations: 0 / 435.9 MB, free: 1.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.1585, allocations: 64.2 kB / 435.9 MB, free: 1.602 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1585, allocations: 0 / 435.9 MB, free: 1.602 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001769/0.1587, allocations: 75.39 kB / 436 MB, free: 1.516 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.814e-05/0.1588, allocations: 81.11 kB / 436.1 MB, free: 1.418 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.503e-05/0.1588, allocations: 89.86 kB / 436.2 MB, free: 1.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.1588, allocations: 25.7 kB / 436.2 MB, free: 1.289 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.504e-05/0.1589, allocations: 80.14 kB / 436.3 MB, free: 1.207 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.1589, allocations: 0 / 436.3 MB, free: 1.207 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.664e-05/0.159, allocations: 17.72 kB / 436.3 MB, free: 1.184 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1591, allocations: 314.8 kB / 436.6 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.069e-05/0.1591, allocations: 4.031 kB / 436.6 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.23e-06/0.1591, allocations: 0 / 436.6 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.134e-05/0.1592, allocations: 64.2 kB / 436.7 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1592, allocations: 0 / 436.7 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.279e-05/0.1593, allocations: 63.41 kB / 436.7 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.928e-05/0.1593, allocations: 36.03 kB / 436.8 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1593, allocations: 0 / 436.8 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.1593, allocations: 7.875 kB / 436.8 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.575e-06/0.1593, allocations: 4 kB / 436.8 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.1594, allocations: 4.094 kB / 436.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.669e-05/0.1594, allocations: 0 / 436.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.1594, allocations: 0 / 436.8 MB, free: 0.6562 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 8.613e-05/0.1595, allocations: 135.5 kB / 436.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-06/0.1595, allocations: 0 / 436.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.268e-05/0.1595, allocations: 11.06 kB / 436.9 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1595, allocations: 0 / 436.9 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1595, allocations: 0 / 436.9 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.535e-05/0.1596, allocations: 7.969 kB / 436.9 MB, free: 500 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.122e-05/0.1597, allocations: 153.7 kB / 437.1 MB, free: 296 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1597, allocations: 3.938 kB / 437.1 MB, free: 292 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1597, allocations: 0 / 437.1 MB, free: 292 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.1597, allocations: 0 / 437.1 MB, free: 292 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.1597, allocations: 7.938 kB / 437.1 MB, free: 284 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.1597, allocations: 0 / 437.1 MB, free: 284 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1597, allocations: 0 / 437.1 MB, free: 284 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.559e-05/0.1598, allocations: 90.83 kB / 437.2 MB, free: 168 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.13e-05/0.1598, allocations: 81.14 kB / 437.3 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.1599, allocations: 7.938 kB / 437.3 MB, free: 60 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.945e-06/0.1599, allocations: 3.938 kB / 437.3 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.392e-05/0.1599, allocations: 3.984 kB / 437.3 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.1599, allocations: 0 / 437.3 MB, free: 52 kB / 366.1 MB Notification: Performance of sorting global known variables: time 4.695e-05/0.1599, allocations: 75.28 kB / 437.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.16, allocations: 0 / 437.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002431/0.1602, allocations: 28 kB / 437.4 MB, free: 15.95 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.0004708/0.1607, allocations: 280.4 kB / 437.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.847e-05/0.1608, allocations: 63.34 kB / 437.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1608, allocations: 0 / 437.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.347e-05/0.1608, allocations: 59.41 kB / 437.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001164/0.1609, allocations: 3.984 kB / 437.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001791/0.1611, allocations: 81.05 kB / 437.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.1614, allocations: 0.6729 MB / 438.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.821e-06/0.1614, allocations: 0 / 438.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.767e-06/0.1615, allocations: 7.438 kB / 438.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1615, allocations: 0 / 438.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of Templates: time 0.003389/0.1649, allocations: 0.9764 MB / 439.5 MB, free: 13.75 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)