Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.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) 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(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01701/0.01701, allocations: 104.6 kB / 15.74 MB, free: 6.492 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.0024/0.002401, allocations: 191.7 kB / 16.68 MB, free: 6.375 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.935/1.935, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.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: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 54.28 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.159, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00436/0.1634, allocations: 1.549 MB / 374.7 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.1662, allocations: 0.9128 MB / 375.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.1664, allocations: 0 / 375.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.1666, allocations: 11.88 kB / 375.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.1667, allocations: 23.84 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004332/0.1672, allocations: 51.88 kB / 375.7 MB, free: 14.74 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004018/0.1676, allocations: 171.6 kB / 375.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.1678, allocations: 41.31 kB / 375.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008881/0.1687, allocations: 0.62 MB / 376.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.1689, allocations: 79.69 kB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.653e-05/0.169, allocations: 12 kB / 376.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.108e-05/0.169, allocations: 12 kB / 376.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001558/0.1692, allocations: 75.62 kB / 376.7 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.1694, allocations: 127 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000586/0.17, allocations: 462.4 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.119e-05/0.17, allocations: 0 / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.17, allocations: 3.938 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.128e-06/0.17, allocations: 0 / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001123/0.1712, allocations: 0.8061 MB / 378.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.1712, allocations: 12.03 kB / 378.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.062e-05/0.1713, allocations: 44.38 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000407/0.1717, allocations: 294.1 kB / 378.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.1718, allocations: 8.375 kB / 378.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.269e-05/0.1718, allocations: 12.38 kB / 378.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004224/0.1723, allocations: 173.8 kB / 378.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1723, allocations: 0 / 378.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/0.1723, allocations: 8 kB / 378.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.1723, allocations: 4 kB / 378.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.1725, allocations: 87.89 kB / 378.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008291/0.1734, allocations: 0.4926 MB / 379.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.1736, allocations: 126.5 kB / 379.4 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002009/0.1738, allocations: 108.9 kB / 379.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.1739, allocations: 4 kB / 379.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005374/0.1744, allocations: 238.6 kB / 379.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.204e-06/0.1744, allocations: 0 / 379.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001194/0.1756, allocations: 0.6225 MB / 380.3 MB, free: 9.887 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002013/0.1758, allocations: 195.9 kB / 380.5 MB, free: 9.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008206/0.1767, allocations: 0.56 MB / 381.1 MB, free: 9.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.445e-05/0.1767, allocations: 33.7 kB / 381.1 MB, free: 9.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.1768, allocations: 117.1 kB / 381.2 MB, free: 8.922 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.322e-05/0.1769, allocations: 35.69 kB / 381.3 MB, free: 8.887 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.1771, allocations: 101.4 kB / 381.3 MB, free: 8.781 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.1773, allocations: 330.9 kB / 381.7 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.1774, allocations: 83.91 kB / 381.8 MB, free: 8.367 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.1776, allocations: 101.6 kB / 381.9 MB, free: 8.262 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/0.1781, allocations: 438.6 kB / 382.3 MB, free: 7.766 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1781, allocations: 0 / 382.3 MB, free: 7.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007971/0.179, allocations: 0.5018 MB / 382.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.1791, allocations: 148.5 kB / 382.9 MB, free: 7.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.1791, allocations: 4 kB / 382.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.1791, allocations: 0 / 382.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.342e-05/0.1792, allocations: 0 / 382.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1792, allocations: 0 / 382.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/0.1794, allocations: 23.92 kB / 383 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.1795, allocations: 93.25 kB / 383 MB, free: 6.934 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * 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.0005135/0.1801, allocations: 416 kB / 383.5 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.104e-05/0.1801, allocations: 47.44 kB / 383.5 MB, free: 6.438 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001178/0.1803, allocations: 75.45 kB / 383.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.1803, allocations: 0 / 383.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.1803, allocations: 0 / 383.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1803, allocations: 0 / 383.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.1816, allocations: 0.9595 MB / 384.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1816, allocations: 0 / 384.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.345e-06/0.1816, allocations: 4 kB / 384.5 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1816, allocations: 0 / 384.5 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.676e-05/0.1817, allocations: 23.92 kB / 384.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1817, allocations: 0 / 384.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1817, allocations: 3.938 kB / 384.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008262/0.1825, allocations: 0.6634 MB / 385.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004192/0.183, allocations: 260.3 kB / 385.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.309e-05/0.1831, allocations: 12 kB / 385.5 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.1832, allocations: 23.98 kB / 385.5 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.1834, allocations: 55.88 kB / 385.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/0.1836, allocations: 101.2 kB / 385.7 MB, free: 4.113 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005481/0.1841, allocations: 414.9 kB / 386.1 MB, free: 3.711 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1841, allocations: 0 / 386.1 MB, free: 3.711 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003596/0.1845, allocations: 52 kB / 386.1 MB, free: 3.66 MB / 318.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: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * 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.0001931/0.1847, allocations: 119.2 kB / 386.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007582/0.1855, allocations: 0.5399 MB / 386.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.1855, allocations: 0 / 386.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004691/0.1859, allocations: 457 kB / 387.2 MB, free: 2.426 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009064/0.1869, allocations: 193.9 kB / 387.4 MB, free: 2.234 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.1884, allocations: 0.7486 MB / 388.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000725/0.1892, allocations: 0.8222 MB / 389 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001428/0.1893, allocations: 12.86 kB / 389 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.122e-05/0.1894, allocations: 19.44 kB / 389 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of SimCode: time 1.613e-06/0.1894, allocations: 0 / 389 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of Templates: time 0.01287/0.2023, allocations: 7.429 MB / 396.4 MB, free: 8.973 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1)