Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.008787/0.008796, allocations: 101.3 kB / 15.73 MB, free: 6.039 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.001515/0.001515, allocations: 193.8 kB / 16.68 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.817/1.817, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001184/0.001184, allocations: 49.86 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1247, 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.003549/0.1283, allocations: 1.552 MB / 374.7 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002585/0.131, allocations: 0.9088 MB / 375.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.1311, allocations: 0 / 375.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001761/0.1314, allocations: 19.86 kB / 375.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001693/0.1315, allocations: 15.88 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.1319, allocations: 55.86 kB / 375.7 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003044/0.1323, allocations: 171.6 kB / 375.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001894/0.1325, allocations: 41.3 kB / 375.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008772/0.1333, allocations: 0.6239 MB / 376.5 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002551/0.1336, allocations: 91.61 kB / 376.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.908e-05/0.1337, allocations: 12 kB / 376.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.405e-05/0.1338, allocations: 12 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.1339, allocations: 67.7 kB / 376.7 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002317/0.1342, allocations: 135 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006146/0.1348, allocations: 458.4 kB / 377.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.1348, allocations: 0 / 377.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.616e-06/0.1348, allocations: 3.984 kB / 377.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.757e-05/0.1349, allocations: 7.875 kB / 377.3 MB, free: 13.12 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.001589/0.1365, allocations: 0.81 MB / 378.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.462e-05/0.1366, allocations: 12.03 kB / 378.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.1367, allocations: 44.38 kB / 378.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005437/0.1373, allocations: 290.2 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.105e-05/0.1374, allocations: 12.38 kB / 378.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.41e-05/0.1374, allocations: 8.375 kB / 378.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005314/0.1379, allocations: 173.8 kB / 378.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.138, allocations: 0 / 378.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.303e-05/0.138, allocations: 8 kB / 378.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.138, allocations: 4 kB / 378.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.1383, allocations: 83.95 kB / 378.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.1396, allocations: 0.4926 MB / 379.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.1399, allocations: 122.5 kB / 379.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/0.1402, allocations: 112.9 kB / 379.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.1402, allocations: 4 kB / 379.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006155/0.1408, allocations: 242.6 kB / 379.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.254e-06/0.1408, allocations: 0 / 379.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.00137/0.1422, allocations: 0.6148 MB / 380.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001628/0.1424, allocations: 187.9 kB / 380.5 MB, free: 9.637 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008863/0.1433, allocations: 0.5678 MB / 381.1 MB, free: 9.059 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.515e-05/0.1434, allocations: 33.7 kB / 381.1 MB, free: 9.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.1435, allocations: 117.1 kB / 381.2 MB, free: 8.898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.737e-05/0.1436, allocations: 39.62 kB / 381.3 MB, free: 8.859 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001757/0.1437, allocations: 97.41 kB / 381.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.1439, allocations: 330.8 kB / 381.7 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.1441, allocations: 80.06 kB / 381.8 MB, free: 8.348 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.1443, allocations: 97.61 kB / 381.9 MB, free: 8.246 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005587/0.1449, allocations: 442.8 kB / 382.3 MB, free: 7.746 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1449, allocations: 0 / 382.3 MB, free: 7.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007953/0.1457, allocations: 0.4979 MB / 382.8 MB, free: 7.211 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001731/0.1459, allocations: 153.6 kB / 382.9 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.1459, allocations: 4 kB / 382.9 MB, free: 7.027 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.146, allocations: 0 / 382.9 MB, free: 7.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.378e-05/0.146, allocations: 0 / 382.9 MB, free: 7.027 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.146, allocations: 0 / 382.9 MB, free: 7.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.1463, allocations: 19.94 kB / 383 MB, free: 7.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/0.1464, allocations: 97.23 kB / 383.1 MB, free: 6.914 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.0005188/0.1469, allocations: 415.9 kB / 383.5 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.464e-05/0.147, allocations: 55.31 kB / 383.5 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.1472, allocations: 67.48 kB / 383.6 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1472, allocations: 0 / 383.6 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.1472, allocations: 0 / 383.6 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.1472, allocations: 3.984 kB / 383.6 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001374/0.1486, allocations: 0.9596 MB / 384.5 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.758e-06/0.1486, allocations: 0 / 384.5 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.836e-06/0.1486, allocations: 4 kB / 384.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.1486, allocations: 0 / 384.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.665e-05/0.1487, allocations: 23.92 kB / 384.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.1487, allocations: 0 / 384.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.1487, allocations: 3.938 kB / 384.6 MB, free: 5.266 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.1498, allocations: 0.6635 MB / 385.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004887/0.1503, allocations: 256.3 kB / 385.5 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.832e-05/0.1504, allocations: 8 kB / 385.5 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001924/0.1506, allocations: 23.98 kB / 385.5 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.1508, allocations: 55.88 kB / 385.6 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/0.151, allocations: 105.2 kB / 385.7 MB, free: 4.094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006851/0.1517, allocations: 418.8 kB / 386.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1517, allocations: 0 / 386.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004369/0.1521, allocations: 52 kB / 386.1 MB, free: 3.637 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.0002327/0.1524, allocations: 119.2 kB / 386.3 MB, free: 3.512 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007206/0.1531, allocations: 0.5321 MB / 386.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1531, allocations: 0 / 386.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004842/0.1536, allocations: 465 kB / 387.2 MB, free: 2.402 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009332/0.1545, allocations: 193.9 kB / 387.4 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.1562, allocations: 0.7522 MB / 388.2 MB, free: 1.434 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005825/0.1568, allocations: 0.8222 MB / 389 MB, free: 0.582 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.1569, allocations: 8.875 kB / 389 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.303e-05/0.157, allocations: 19.44 kB / 389 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of SimCode: time 9.51e-07/0.157, allocations: 0 / 389 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of Templates: time 0.01467/0.1716, allocations: 7.429 MB / 396.5 MB, free: 8.949 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1)