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.009378/0.009378, allocations: 100 kB / 15.73 MB, free: 6.062 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.00147/0.00147, allocations: 193.8 kB / 16.68 MB, free: 5.973 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.873/1.873, allocations: 205.1 MB / 222.6 MB, free: 4.359 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.001253/0.001253, allocations: 49.7 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1126, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003313/0.116, allocations: 1.545 MB / 374.7 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002242/0.1183, allocations: 0.9128 MB / 375.6 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.004e-05/0.1184, allocations: 0 / 375.6 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.1186, allocations: 11.86 kB / 375.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.1187, allocations: 23.8 kB / 375.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003487/0.119, allocations: 63.88 kB / 375.7 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002854/0.1193, allocations: 163.7 kB / 375.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.1195, allocations: 25.39 kB / 375.9 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008122/0.1203, allocations: 0.6317 MB / 376.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.1205, allocations: 75.64 kB / 376.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.586e-05/0.1206, allocations: 12 kB / 376.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.875e-05/0.1207, allocations: 12 kB / 376.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.1208, allocations: 79.69 kB / 376.7 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.121, allocations: 135 kB / 376.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005313/0.1215, allocations: 462 kB / 377.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.1215, allocations: 3.938 kB / 377.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1216, allocations: 0 / 377.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.1216, 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.001105/0.1227, allocations: 0.8294 MB / 378.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.1227, allocations: 8.031 kB / 378.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.1229, allocations: 48.7 kB / 378.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004081/0.1233, allocations: 298.5 kB / 378.5 MB, free: 11.83 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/0.1233, allocations: 8.359 kB / 378.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.889e-05/0.1234, allocations: 12.38 kB / 378.5 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004657/0.1238, allocations: 177.7 kB / 378.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.1239, allocations: 0 / 378.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.953e-05/0.1239, allocations: 4 kB / 378.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.1239, allocations: 8 kB / 378.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.1241, allocations: 87.94 kB / 378.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007466/0.1248, allocations: 0.4926 MB / 379.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.1251, allocations: 118.5 kB / 379.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.1253, allocations: 112.9 kB / 379.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.304e-05/0.1253, allocations: 0 / 379.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004164/0.1258, allocations: 246.6 kB / 379.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.663e-06/0.1258, allocations: 3.938 kB / 379.7 MB, free: 10.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009956/0.1268, allocations: 0.6111 MB / 380.3 MB, free: 9.836 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.1269, allocations: 195.9 kB / 380.5 MB, free: 9.602 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007782/0.1277, allocations: 0.5562 MB / 381.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.1277, allocations: 29.7 kB / 381.1 MB, free: 9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.701e-05/0.1278, allocations: 125.1 kB / 381.2 MB, free: 8.871 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.071e-05/0.1279, allocations: 39.97 kB / 381.3 MB, free: 8.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.1281, allocations: 101.4 kB / 381.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1282, allocations: 334.8 kB / 381.7 MB, free: 8.391 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.1284, allocations: 83.95 kB / 381.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.1286, allocations: 93.67 kB / 381.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005364/0.1291, allocations: 426.7 kB / 382.3 MB, free: 7.727 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1291, allocations: 8 kB / 382.3 MB, free: 7.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006887/0.1298, allocations: 0.5018 MB / 382.8 MB, free: 7.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.1299, allocations: 156.5 kB / 383 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.13, allocations: 0 / 383 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.13, allocations: 0 / 383 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.347e-05/0.13, allocations: 4 kB / 383 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.13, allocations: 0 / 383 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.1302, allocations: 11.98 kB / 383 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000156/0.1303, allocations: 113.1 kB / 383.1 MB, free: 6.871 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.0004046/0.1308, allocations: 403.9 kB / 383.5 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.467e-05/0.1308, allocations: 47.72 kB / 383.5 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.1309, allocations: 71.45 kB / 383.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.131, allocations: 4 kB / 383.6 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.131, allocations: 0 / 383.6 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.131, allocations: 0 / 383.6 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.1324, allocations: 0.9595 MB / 384.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1324, allocations: 4.125 kB / 384.6 MB, free: 5.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.95e-06/0.1324, allocations: 0 / 384.6 MB, free: 5.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1324, allocations: 4 kB / 384.6 MB, free: 5.262 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/0.1325, allocations: 23.98 kB / 384.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1325, allocations: 3.938 kB / 384.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.1325, allocations: 7.938 kB / 384.6 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00081/0.1333, allocations: 0.652 MB / 385.3 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003067/0.1336, allocations: 264.6 kB / 385.5 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.433e-05/0.1337, allocations: 12 kB / 385.5 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.1338, allocations: 15.98 kB / 385.5 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.134, allocations: 59.86 kB / 385.6 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001671/0.1342, allocations: 105.2 kB / 385.7 MB, free: 4.059 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000565/0.1347, allocations: 422.8 kB / 386.1 MB, free: 3.648 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1347, allocations: 0 / 386.1 MB, free: 3.648 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002978/0.135, allocations: 48 kB / 386.2 MB, free: 3.602 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.0001642/0.1352, allocations: 111.2 kB / 386.3 MB, free: 3.484 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008994/0.1361, allocations: 0.5399 MB / 386.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1361, allocations: 0 / 386.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00043/0.1366, allocations: 465 kB / 387.3 MB, free: 2.367 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008907/0.1375, allocations: 194 kB / 387.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001273/0.1388, allocations: 0.7671 MB / 388.2 MB, free: 1.383 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006315/0.1394, allocations: 0.8222 MB / 389 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.887e-05/0.1395, allocations: 8.875 kB / 389.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.58e-05/0.1395, allocations: 15.44 kB / 389.1 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1395, allocations: 0 / 389.1 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of Templates: time 0.01281/0.1523, allocations: 7.425 MB / 396.5 MB, free: 8.906 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)