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.01128/0.01128, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.002434/0.002434, allocations: 195 kB / 16.67 MB, free: 5.977 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.863/1.863, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.001421/0.001421, allocations: 59.45 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1316, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00336/0.135, allocations: 1.549 MB / 374.7 MB, free: 15.76 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.1372, allocations: 0.9089 MB / 375.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.053e-05/0.1372, allocations: 0 / 375.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001046/0.1374, allocations: 15.86 kB / 375.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.015e-05/0.1375, allocations: 19.8 kB / 375.7 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.1378, allocations: 59.88 kB / 375.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000256/0.1381, allocations: 167.7 kB / 375.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.1382, allocations: 25.39 kB / 375.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000677/0.1389, allocations: 0.6317 MB / 376.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001642/0.1391, allocations: 79.64 kB / 376.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.408e-05/0.1391, allocations: 11.94 kB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.579e-05/0.1392, allocations: 12 kB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.1393, allocations: 79.69 kB / 376.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.1395, allocations: 131 kB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004573/0.1399, allocations: 466 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1399, allocations: 0 / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1399, allocations: 3.938 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.14, allocations: 0 / 377.3 MB, free: 13.16 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.0009114/0.1409, allocations: 0.8256 MB / 378.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1409, allocations: 8.031 kB / 378.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.61e-05/0.141, allocations: 44.7 kB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003179/0.1413, allocations: 302.4 kB / 378.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.1414, allocations: 4.375 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.343e-05/0.1414, allocations: 16.38 kB / 378.5 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003673/0.1418, allocations: 165.9 kB / 378.7 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.1418, allocations: 4 kB / 378.7 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.1418, allocations: 4 kB / 378.7 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1418, allocations: 4 kB / 378.7 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.142, allocations: 87.89 kB / 378.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006967/0.1427, allocations: 0.4927 MB / 379.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.143, allocations: 126.5 kB / 379.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.1432, allocations: 104.9 kB / 379.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.041e-05/0.1432, allocations: 0 / 379.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004083/0.1436, allocations: 250.6 kB / 379.7 MB, free: 10.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.1436, allocations: 0 / 379.7 MB, free: 10.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001003/0.1446, allocations: 0.6149 MB / 380.3 MB, free: 9.879 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.1448, allocations: 199.9 kB / 380.5 MB, free: 9.641 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007152/0.1455, allocations: 0.5562 MB / 381.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.961e-05/0.1455, allocations: 33.7 kB / 381.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.1457, allocations: 117.1 kB / 381.2 MB, free: 8.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.267e-05/0.1457, allocations: 31.94 kB / 381.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/0.1459, allocations: 97.5 kB / 381.4 MB, free: 8.781 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1461, allocations: 338.9 kB / 381.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.1462, allocations: 91.81 kB / 381.8 MB, free: 8.352 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.1464, allocations: 97.67 kB / 381.9 MB, free: 8.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004543/0.1469, allocations: 434.8 kB / 382.3 MB, free: 7.758 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1469, allocations: 4 kB / 382.3 MB, free: 7.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006996/0.1476, allocations: 0.5018 MB / 382.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.1477, allocations: 152.5 kB / 383 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.1477, allocations: 3.938 kB / 383 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.1478, allocations: 4 kB / 383 MB, free: 7.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.368e-05/0.1478, allocations: 0 / 383 MB, free: 7.027 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.1478, allocations: 0 / 383 MB, free: 7.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.148, allocations: 15.98 kB / 383 MB, free: 7.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.1481, allocations: 101.2 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.0004091/0.1485, allocations: 412 kB / 383.5 MB, free: 6.469 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.15e-05/0.1486, allocations: 47.72 kB / 383.5 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.1487, allocations: 79.41 kB / 383.6 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1487, allocations: 3.984 kB / 383.6 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.1487, allocations: 0 / 383.6 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1487, allocations: 0 / 383.6 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.1499, allocations: 0.9595 MB / 384.6 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.1499, allocations: 0 / 384.6 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.414e-06/0.1499, allocations: 7.984 kB / 384.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1499, allocations: 4 kB / 384.6 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.674e-05/0.15, allocations: 16 kB / 384.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.15, allocations: 3.984 kB / 384.6 MB, free: 5.266 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.15, allocations: 3.938 kB / 384.6 MB, free: 5.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008012/0.1508, allocations: 0.6558 MB / 385.3 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003232/0.1511, allocations: 260.6 kB / 385.5 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.603e-05/0.1512, allocations: 12 kB / 385.5 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.1514, allocations: 12 kB / 385.5 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.1515, allocations: 67.86 kB / 385.6 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.1517, allocations: 97.25 kB / 385.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005278/0.1522, allocations: 418.8 kB / 386.1 MB, free: 3.691 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1522, allocations: 0 / 386.1 MB, free: 3.691 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003398/0.1526, allocations: 55.98 kB / 386.2 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.0002212/0.1528, allocations: 115.2 kB / 386.3 MB, free: 3.516 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000735/0.1535, allocations: 0.536 MB / 386.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1536, allocations: 0 / 386.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005046/0.1541, allocations: 461 kB / 387.3 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009389/0.155, allocations: 193.8 kB / 387.4 MB, free: 2.215 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.1562, allocations: 0.7596 MB / 388.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004996/0.1568, allocations: 0.8261 MB / 389 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.375e-05/0.1568, allocations: 12.86 kB / 389 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.971e-05/0.1569, allocations: 23.38 kB / 389.1 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1569, allocations: 0 / 389.1 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of Templates: time 0.01176/0.1686, allocations: 7.425 MB / 396.5 MB, free: 8.938 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)