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.001597/0.001606, allocations: 105.1 kB / 16.92 MB, free: 5.762 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.002014/0.002015, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.915/1.915, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.00136/0.00136, allocations: 51.92 kB / 280 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1308, allocations: 46.63 MB / 326.6 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00338/0.1343, allocations: 1.544 MB / 328.2 MB, free: 2.918 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.1365, allocations: 0.913 MB / 329.1 MB, free: 1.996 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.774e-05/0.1367, allocations: 0 / 329.1 MB, free: 1.996 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.1368, allocations: 7.938 kB / 329.1 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001135/0.1369, allocations: 27.8 kB / 329.1 MB, free: 1.961 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.1373, allocations: 47.88 kB / 329.2 MB, free: 1.914 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002811/0.1376, allocations: 175.7 kB / 329.3 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.1377, allocations: 25.34 kB / 329.4 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007149/0.1385, allocations: 0.6238 MB / 330 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.1386, allocations: 79.7 kB / 330.1 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.672e-05/0.1387, allocations: 12 kB / 330.1 MB, free: 1 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.511e-05/0.1388, allocations: 8 kB / 330.1 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.1389, allocations: 83.61 kB / 330.2 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.1391, allocations: 127.1 kB / 330.3 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.1395, allocations: 458.6 kB / 330.7 MB, free: 344 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.1396, allocations: 4 kB / 330.7 MB, free: 340 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1396, allocations: 0 / 330.7 MB, free: 340 kB / 270.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1396, allocations: 0 / 330.7 MB, free: 340 kB / 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.001113/0.1407, allocations: 0.806 MB / 331.5 MB, free: 15.45 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.806e-05/0.1408, allocations: 12.03 kB / 331.6 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.1409, allocations: 40.47 kB / 331.6 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.1413, allocations: 294.1 kB / 331.9 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.122e-05/0.1413, allocations: 12.38 kB / 331.9 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.472e-05/0.1414, allocations: 8.375 kB / 331.9 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003962/0.1418, allocations: 177.8 kB / 332.1 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.1418, allocations: 0 / 332.1 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.412e-05/0.1419, allocations: 8 kB / 332.1 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.1419, allocations: 0 / 332.1 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001885/0.1421, allocations: 83.95 kB / 332.2 MB, free: 14.78 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008457/0.1429, allocations: 0.4964 MB / 332.7 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.1432, allocations: 126.5 kB / 332.8 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000195/0.1434, allocations: 112.9 kB / 332.9 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.1434, allocations: 0 / 332.9 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005158/0.1439, allocations: 246.7 kB / 333.1 MB, free: 13.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.1439, allocations: 3.938 kB / 333.1 MB, free: 13.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.001065/0.145, allocations: 0.6187 MB / 333.8 MB, free: 13.06 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/0.1452, allocations: 191.9 kB / 333.9 MB, free: 12.83 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007803/0.146, allocations: 0.5601 MB / 334.5 MB, free: 12.26 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/0.146, allocations: 29.7 kB / 334.5 MB, free: 12.23 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.1461, allocations: 121 kB / 334.7 MB, free: 12.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-05/0.1462, allocations: 31.64 kB / 334.7 MB, free: 12.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.1463, allocations: 101.3 kB / 334.8 MB, free: 11.97 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.1465, allocations: 334.8 kB / 335.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.1467, allocations: 83.95 kB / 335.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.1469, allocations: 99.08 kB / 335.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004486/0.1473, allocations: 435.3 kB / 335.7 MB, free: 10.96 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1474, allocations: 3.938 kB / 335.7 MB, free: 10.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006889/0.1481, allocations: 0.5039 MB / 336.2 MB, free: 10.41 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001191/0.1482, allocations: 148.5 kB / 336.4 MB, free: 10.24 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.1482, allocations: 4 kB / 336.4 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.1482, allocations: 4.031 kB / 336.4 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.02e-05/0.1483, allocations: 4 kB / 336.4 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.1483, allocations: 3.938 kB / 336.4 MB, free: 10.22 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.1485, allocations: 15.98 kB / 336.4 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/0.1486, allocations: 101.2 kB / 336.5 MB, free: 10.11 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.0005182/0.1491, allocations: 396 kB / 336.9 MB, free: 9.676 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.042e-05/0.1492, allocations: 43.53 kB / 336.9 MB, free: 9.633 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001447/0.1494, allocations: 75.45 kB / 337 MB, free: 9.555 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.1494, allocations: 4 kB / 337 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1494, allocations: 0 / 337 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1494, allocations: 0 / 337 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001221/0.1506, allocations: 0.9595 MB / 338 MB, free: 8.504 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1506, allocations: 3.938 kB / 338 MB, free: 8.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.103e-06/0.1507, allocations: 3.984 kB / 338 MB, free: 8.496 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1507, allocations: 0 / 338 MB, free: 8.496 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.446e-05/0.1507, allocations: 16 kB / 338 MB, free: 8.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1507, allocations: 3.984 kB / 338 MB, free: 8.477 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1507, allocations: 3.938 kB / 338 MB, free: 8.473 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008912/0.1516, allocations: 0.6716 MB / 338.7 MB, free: 7.754 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003408/0.152, allocations: 256.4 kB / 338.9 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.061e-05/0.1521, allocations: 12.19 kB / 338.9 MB, free: 7.473 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.1522, allocations: 16 kB / 338.9 MB, free: 7.457 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/0.1524, allocations: 59.86 kB / 339 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.1525, allocations: 97.19 kB / 339.1 MB, free: 7.305 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005464/0.1531, allocations: 422.8 kB / 339.5 MB, free: 6.891 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1531, allocations: 4 kB / 339.5 MB, free: 6.887 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003599/0.1535, allocations: 51.98 kB / 339.6 MB, free: 6.836 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.0001817/0.1537, allocations: 119.1 kB / 339.7 MB, free: 6.707 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007009/0.1544, allocations: 0.5321 MB / 340.2 MB, free: 6.113 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1544, allocations: 0 / 340.2 MB, free: 6.113 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.1548, allocations: 464.9 kB / 340.7 MB, free: 5.598 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008755/0.1557, allocations: 189.8 kB / 340.9 MB, free: 5.414 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.1572, allocations: 0.7569 MB / 341.6 MB, free: 4.633 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/0.1578, allocations: 0.822 MB / 342.4 MB, free: 3.781 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.006e-05/0.1579, allocations: 12.86 kB / 342.4 MB, free: 3.77 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.81e-05/0.158, allocations: 19.44 kB / 342.5 MB, free: 3.75 MB / 286.1 MB Notification: Performance of SimCode: time 1.443e-06/0.158, allocations: 3.938 kB / 342.5 MB, free: 3.746 MB / 286.1 MB Notification: Performance of Templates: time 0.01318/0.1711, allocations: 7.442 MB / 349.9 MB, free: 12.14 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)