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.00729/0.00729, allocations: 100.3 kB / 15.73 MB, free: 6.012 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.001426/0.001426, allocations: 185.8 kB / 16.67 MB, free: 5.934 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.852/1.852, allocations: 205.1 MB / 222.6 MB, free: 4.484 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.001354/0.001355, allocations: 50.11 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.162, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003371/0.1654, allocations: 1.541 MB / 374.7 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.1681, allocations: 0.9089 MB / 375.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.767e-05/0.1682, allocations: 4 kB / 375.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.1684, allocations: 11.86 kB / 375.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001345/0.1685, allocations: 23.8 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004465/0.169, allocations: 67.86 kB / 375.7 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003292/0.1693, allocations: 163.7 kB / 375.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.1695, allocations: 25.39 kB / 375.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009135/0.1704, allocations: 0.6434 MB / 376.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.1707, allocations: 83.56 kB / 376.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.738e-05/0.1707, allocations: 12 kB / 376.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.081e-05/0.1708, allocations: 12 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.1709, allocations: 75.69 kB / 376.7 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002082/0.1712, allocations: 139 kB / 376.9 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006451/0.1718, allocations: 454 kB / 377.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.116e-05/0.1718, allocations: 3.938 kB / 377.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.408e-06/0.1718, allocations: 0 / 377.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.1719, allocations: 0 / 377.3 MB, free: 13.13 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.00145/0.1733, allocations: 0.8256 MB / 378.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.032e-05/0.1734, allocations: 8.031 kB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.1735, allocations: 44.69 kB / 378.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005599/0.1741, allocations: 306.4 kB / 378.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.1741, allocations: 4.375 kB / 378.5 MB, free: 11.83 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.426e-05/0.1742, allocations: 8.375 kB / 378.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.1747, allocations: 177.8 kB / 378.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1747, allocations: 0 / 378.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.507e-05/0.1747, allocations: 8 kB / 378.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1747, allocations: 0 / 378.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001868/0.1749, allocations: 91.89 kB / 378.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.176, allocations: 0.4888 MB / 379.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002369/0.1762, allocations: 122.5 kB / 379.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/0.1765, allocations: 112.9 kB / 379.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.1765, allocations: 0 / 379.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005051/0.177, allocations: 242.6 kB / 379.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.177, allocations: 0 / 379.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.00111/0.1781, allocations: 0.6188 MB / 380.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001449/0.1783, allocations: 191.9 kB / 380.5 MB, free: 9.617 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007794/0.1791, allocations: 0.564 MB / 381.1 MB, free: 9.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.1791, allocations: 29.7 kB / 381.1 MB, free: 9.008 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.1793, allocations: 121.2 kB / 381.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.806e-05/0.1793, allocations: 43.84 kB / 381.3 MB, free: 8.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.1795, allocations: 97.5 kB / 381.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.1797, allocations: 330.8 kB / 381.7 MB, free: 8.406 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.1799, allocations: 83.89 kB / 381.8 MB, free: 8.324 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.1801, allocations: 97.67 kB / 381.9 MB, free: 8.223 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005523/0.1807, allocations: 434.8 kB / 382.3 MB, free: 7.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1807, allocations: 0 / 382.3 MB, free: 7.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008571/0.1816, allocations: 0.5096 MB / 382.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/0.1817, allocations: 157.5 kB / 383 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1817, allocations: 0 / 383 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.1817, allocations: 0 / 383 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.801e-05/0.1818, allocations: 3.984 kB / 383 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.1818, allocations: 4 kB / 383 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001549/0.1819, allocations: 8 kB / 383 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/0.1821, allocations: 101.2 kB / 383.1 MB, free: 6.887 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.0004378/0.1825, allocations: 416 kB / 383.5 MB, free: 6.438 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.27e-05/0.1826, allocations: 43.72 kB / 383.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.1827, allocations: 67.48 kB / 383.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1827, allocations: 3.938 kB / 383.6 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.1827, allocations: 0 / 383.6 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.1828, allocations: 0 / 383.6 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001283/0.184, allocations: 0.9673 MB / 384.6 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.1841, allocations: 0 / 384.6 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.42e-06/0.1841, allocations: 0 / 384.6 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1841, allocations: 4 kB / 384.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.11e-05/0.1841, allocations: 28.11 kB / 384.6 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1842, allocations: 0 / 384.6 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.1842, allocations: 3.938 kB / 384.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009555/0.1851, allocations: 0.6636 MB / 385.3 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004054/0.1855, allocations: 252.6 kB / 385.5 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.156e-05/0.1856, allocations: 12 kB / 385.5 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.1858, allocations: 15.98 kB / 385.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.186, allocations: 59.88 kB / 385.6 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.1861, allocations: 105.2 kB / 385.7 MB, free: 4.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005304/0.1866, allocations: 418.8 kB / 386.1 MB, free: 3.664 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1866, allocations: 0 / 386.1 MB, free: 3.664 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003148/0.187, allocations: 48 kB / 386.2 MB, free: 3.617 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.0002027/0.1872, allocations: 115.2 kB / 386.3 MB, free: 3.496 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007882/0.188, allocations: 0.536 MB / 386.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.188, allocations: 4.062 kB / 386.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005086/0.1885, allocations: 461 kB / 387.3 MB, free: 2.383 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009634/0.1895, allocations: 193.9 kB / 387.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0014/0.1909, allocations: 0.7632 MB / 388.2 MB, free: 1.402 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000558/0.1915, allocations: 0.8221 MB / 389 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.477e-05/0.1915, allocations: 16.86 kB / 389.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.778e-05/0.1916, allocations: 11.44 kB / 389.1 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1916, allocations: 3.938 kB / 389.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of Templates: time 0.01493/0.2065, allocations: 7.429 MB / 396.5 MB, free: 8.914 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)