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.001512/0.001512, allocations: 105.4 kB / 16.62 MB, free: 6.812 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.002892/0.002892, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.829/1.829, allocations: 205.1 MB / 223.4 MB, free: 12.38 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.001413/0.001413, allocations: 47.94 kB / 279.5 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1283, allocations: 46.63 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003317/0.1317, allocations: 1.613 MB / 327.7 MB, free: 3.168 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002264/0.134, allocations: 0.9059 MB / 328.6 MB, free: 2.254 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.11e-05/0.1341, allocations: 0 / 328.6 MB, free: 2.254 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.1343, allocations: 7.922 kB / 328.7 MB, free: 2.246 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001161/0.1344, allocations: 19.88 kB / 328.7 MB, free: 2.227 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003542/0.1348, allocations: 43.94 kB / 328.7 MB, free: 2.184 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002446/0.135, allocations: 179.6 kB / 328.9 MB, free: 2.008 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.1352, allocations: 25.39 kB / 328.9 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007346/0.1359, allocations: 0.6356 MB / 329.6 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.1361, allocations: 95.62 kB / 329.6 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.068e-05/0.1362, allocations: 12 kB / 329.7 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.955e-05/0.1362, allocations: 12 kB / 329.7 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002193/0.1364, allocations: 79.67 kB / 329.7 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.1366, allocations: 135 kB / 329.9 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008326/0.1375, allocations: 454.6 kB / 330.3 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.1375, allocations: 0 / 330.3 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1375, allocations: 0 / 330.3 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1375, allocations: 4 kB / 330.3 MB, free: 0.5664 MB / 270.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.001414/0.1389, allocations: 0.8138 MB / 331.1 MB, free: 15.67 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/0.139, allocations: 8.031 kB / 331.2 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.1391, allocations: 48.47 kB / 331.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004342/0.1395, allocations: 298.1 kB / 331.5 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.1396, allocations: 4.375 kB / 331.5 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.129e-05/0.1396, allocations: 8.375 kB / 331.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004633/0.1401, allocations: 177.8 kB / 331.7 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1401, allocations: 0 / 331.7 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.1402, allocations: 4 kB / 331.7 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1402, allocations: 4 kB / 331.7 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.1404, allocations: 83.95 kB / 331.8 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008522/0.1412, allocations: 0.4925 MB / 332.3 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/0.1415, allocations: 122.5 kB / 332.4 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001971/0.1417, allocations: 112.9 kB / 332.5 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.1417, allocations: 0 / 332.5 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005447/0.1423, allocations: 246.6 kB / 332.7 MB, free: 13.95 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 3.256e-06/0.1423, allocations: 112 / 332.7 MB, free: 13.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.00127/0.1436, allocations: 0.6186 MB / 333.3 MB, free: 13.3 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001504/0.1437, allocations: 191.9 kB / 333.5 MB, free: 13.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007879/0.1445, allocations: 0.5601 MB / 334.1 MB, free: 12.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.1446, allocations: 29.7 kB / 334.1 MB, free: 12.46 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.645e-05/0.1447, allocations: 117 kB / 334.2 MB, free: 12.35 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.144e-05/0.1447, allocations: 39.62 kB / 334.3 MB, free: 12.31 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.1449, allocations: 101.3 kB / 334.4 MB, free: 12.2 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1451, allocations: 330.8 kB / 334.7 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.1452, allocations: 83.95 kB / 334.8 MB, free: 11.79 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.1454, allocations: 97.81 kB / 334.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004332/0.1458, allocations: 431.9 kB / 335.3 MB, free: 11.2 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1459, allocations: 8.062 kB / 335.3 MB, free: 11.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007729/0.1466, allocations: 0.5095 MB / 335.8 MB, free: 10.64 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.1468, allocations: 152.5 kB / 336 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.1468, allocations: 0 / 336 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.1468, allocations: 3.984 kB / 336 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.369e-05/0.1468, allocations: 4 kB / 336 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.1468, allocations: 0 / 336 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001592/0.147, allocations: 12 kB / 336 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.1471, allocations: 101.2 kB / 336.1 MB, free: 10.34 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.0003774/0.1475, allocations: 412 kB / 336.5 MB, free: 9.898 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.183e-05/0.1476, allocations: 43.53 kB / 336.5 MB, free: 9.855 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.1477, allocations: 63.48 kB / 336.6 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.1477, allocations: 4 kB / 336.6 MB, free: 9.785 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1477, allocations: 0 / 336.6 MB, free: 9.785 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1477, allocations: 0 / 336.6 MB, free: 9.785 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.1488, allocations: 0.9675 MB / 337.6 MB, free: 8.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1489, allocations: 0 / 337.6 MB, free: 8.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.02e-06/0.1489, allocations: 4 kB / 337.6 MB, free: 8.727 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1489, allocations: 4 kB / 337.6 MB, free: 8.723 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/0.1489, allocations: 15.98 kB / 337.6 MB, free: 8.707 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1489, allocations: 4 kB / 337.6 MB, free: 8.703 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.1489, allocations: 7.875 kB / 337.6 MB, free: 8.695 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008405/0.1498, allocations: 0.6635 MB / 338.3 MB, free: 7.984 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003509/0.1502, allocations: 252.4 kB / 338.5 MB, free: 7.719 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.845e-05/0.1502, allocations: 12 kB / 338.5 MB, free: 7.707 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001529/0.1504, allocations: 15.98 kB / 338.5 MB, free: 7.691 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002564/0.1507, allocations: 59.88 kB / 338.6 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.1508, allocations: 101.2 kB / 338.7 MB, free: 7.535 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005977/0.1514, allocations: 426.8 kB / 339.1 MB, free: 7.121 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1514, allocations: 0 / 339.1 MB, free: 7.121 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000306/0.1517, allocations: 48 kB / 339.2 MB, free: 7.074 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.0002466/0.152, allocations: 119.3 kB / 339.3 MB, free: 6.945 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006176/0.1526, allocations: 0.5399 MB / 339.8 MB, free: 6.344 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1526, allocations: 0 / 339.8 MB, free: 6.344 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003825/0.153, allocations: 461 kB / 340.3 MB, free: 5.832 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008086/0.1538, allocations: 188.6 kB / 340.4 MB, free: 5.652 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.1551, allocations: 0.8773 MB / 341.3 MB, free: 4.75 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004793/0.1556, allocations: 0.8182 MB / 342.1 MB, free: 3.906 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.188e-05/0.1556, allocations: 16.84 kB / 342.2 MB, free: 3.891 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.75e-05/0.1557, allocations: 15.44 kB / 342.2 MB, free: 3.875 MB / 286.1 MB Notification: Performance of SimCode: time 5.82e-07/0.1557, allocations: 0 / 342.2 MB, free: 3.875 MB / 286.1 MB Notification: Performance of Templates: time 0.01101/0.1667, allocations: 7.165 MB / 349.3 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)