Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001034/0.001034, allocations: 92.58 kB / 16.65 MB, free: 6.535 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.001594/0.001595, allocations: 174.2 kB / 17.56 MB, free: 6.184 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.864/1.864, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.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.0004926/0.0004927, allocations: 12 kB / 280.7 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1393, allocations: 47.58 MB / 328.3 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002288/0.1416, allocations: 1.27 MB / 329.6 MB, free: 2.484 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002132/0.1438, allocations: 0.9178 MB / 330.5 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.076e-05/0.1439, allocations: 0 / 330.5 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.144, allocations: 11.92 kB / 330.5 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.157e-05/0.1441, allocations: 15.86 kB / 330.5 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.1444, allocations: 51.94 kB / 330.6 MB, free: 1.48 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001722/0.1446, allocations: 131.6 kB / 330.7 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.1447, allocations: 25.39 kB / 330.7 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007372/0.1455, allocations: 0.6239 MB / 331.4 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.1456, allocations: 87.61 kB / 331.4 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.06e-05/0.1457, allocations: 4 kB / 331.4 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.851e-05/0.1457, allocations: 4 kB / 331.5 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.1458, allocations: 71.7 kB / 331.5 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.146, allocations: 152.7 kB / 331.7 MB, free: 388 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004905/0.1465, allocations: 446.6 kB / 332.1 MB, free: 15.94 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.1465, allocations: 0 / 332.1 MB, free: 15.94 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.1465, allocations: 0 / 332.1 MB, free: 15.94 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1465, allocations: 0 / 332.1 MB, free: 15.94 MB / 286.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.0008329/0.1474, allocations: 0.7323 MB / 332.8 MB, free: 15.13 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.1474, allocations: 16.02 kB / 332.9 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.945e-05/0.1475, allocations: 40.47 kB / 332.9 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004034/0.1479, allocations: 290.1 kB / 333.2 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.148, allocations: 8.375 kB / 333.2 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.148, allocations: 16.36 kB / 333.2 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004244/0.1485, allocations: 177.8 kB / 333.4 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.1485, allocations: 0 / 333.4 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.141e-05/0.1485, allocations: 4 kB / 333.4 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.1486, allocations: 0 / 333.4 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.1487, allocations: 87.89 kB / 333.5 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007819/0.1495, allocations: 0.5042 MB / 334 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.1498, allocations: 122.5 kB / 334.1 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.15, allocations: 112.9 kB / 334.2 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.15, allocations: 0 / 334.2 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004328/0.1505, allocations: 242.6 kB / 334.4 MB, free: 13.4 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 3.337e-06/0.1505, allocations: 4.109 kB / 334.4 MB, free: 13.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.001047/0.1515, allocations: 0.6186 MB / 335.1 MB, free: 12.74 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.1516, allocations: 187.9 kB / 335.2 MB, free: 12.51 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007238/0.1524, allocations: 0.5678 MB / 335.8 MB, free: 11.94 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.1524, allocations: 29.7 kB / 335.8 MB, free: 11.9 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.1526, allocations: 113.1 kB / 336 MB, free: 11.79 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.948e-05/0.1526, allocations: 39.53 kB / 336 MB, free: 11.75 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-05/0.1527, allocations: 25.72 kB / 336 MB, free: 11.72 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1528, allocations: 334.8 kB / 336.3 MB, free: 11.38 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.153, allocations: 83.95 kB / 336.4 MB, free: 11.3 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.1532, allocations: 93.81 kB / 336.5 MB, free: 11.2 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004479/0.1536, allocations: 438 kB / 336.9 MB, free: 10.71 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1536, allocations: 0 / 336.9 MB, free: 10.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007208/0.1544, allocations: 0.5018 MB / 337.4 MB, free: 10.17 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.1545, allocations: 155.1 kB / 337.6 MB, free: 9.992 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1545, allocations: 4.094 kB / 337.6 MB, free: 9.988 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.1545, allocations: 4 kB / 337.6 MB, free: 9.984 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.377e-05/0.1546, allocations: 0 / 337.6 MB, free: 9.984 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.1546, allocations: 4 kB / 337.6 MB, free: 9.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.1548, allocations: 19.98 kB / 337.6 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/0.1549, allocations: 101.2 kB / 337.7 MB, free: 9.859 MB / 286.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.0004989/0.1554, allocations: 400 kB / 338.1 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.819e-05/0.1555, allocations: 43.53 kB / 338.2 MB, free: 9.383 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.1557, allocations: 79.45 kB / 338.2 MB, free: 9.301 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1557, allocations: 0 / 338.2 MB, free: 9.301 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.1557, allocations: 0 / 338.2 MB, free: 9.301 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.1557, allocations: 0 / 338.2 MB, free: 9.301 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.1569, allocations: 0.9633 MB / 339.2 MB, free: 8.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1569, allocations: 0 / 339.2 MB, free: 8.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.192e-06/0.157, allocations: 4 kB / 339.2 MB, free: 8.246 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.157, allocations: 3.938 kB / 339.2 MB, free: 8.242 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.463e-05/0.157, allocations: 19.98 kB / 339.2 MB, free: 8.223 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.157, allocations: 0 / 339.2 MB, free: 8.223 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.157, allocations: 7.938 kB / 339.2 MB, free: 8.215 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008004/0.1578, allocations: 0.6557 MB / 339.9 MB, free: 7.512 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000335/0.1582, allocations: 264.3 kB / 340.1 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.269e-05/0.1582, allocations: 8 kB / 340.2 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.1584, allocations: 16 kB / 340.2 MB, free: 7.211 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.1586, allocations: 63.84 kB / 340.2 MB, free: 7.148 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.1587, allocations: 105.2 kB / 340.3 MB, free: 7.047 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005245/0.1593, allocations: 418.8 kB / 340.7 MB, free: 6.641 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1593, allocations: 4 kB / 340.8 MB, free: 6.637 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.1596, allocations: 52 kB / 340.8 MB, free: 6.586 MB / 286.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.0002063/0.1598, allocations: 119.3 kB / 340.9 MB, free: 6.457 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006693/0.1605, allocations: 0.5282 MB / 341.4 MB, free: 5.867 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1605, allocations: 0 / 341.4 MB, free: 5.867 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004731/0.161, allocations: 465 kB / 341.9 MB, free: 5.352 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009619/0.1619, allocations: 174.2 kB / 342.1 MB, free: 5.184 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.1636, allocations: 0.8685 MB / 342.9 MB, free: 4.289 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005784/0.1642, allocations: 0.8224 MB / 343.8 MB, free: 3.441 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001031/0.1643, allocations: 16.81 kB / 343.8 MB, free: 3.422 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.59e-05/0.1643, allocations: 11.44 kB / 343.8 MB, free: 3.41 MB / 286.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1643, allocations: 0 / 343.8 MB, free: 3.41 MB / 286.1 MB Notification: Performance of Templates: time 0.01214/0.1764, allocations: 6.704 MB / 350.5 MB, free: 12.54 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1)