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.008402/0.008402, allocations: 100.7 kB / 15.73 MB, free: 5.988 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.001535/0.001535, allocations: 197 kB / 16.67 MB, free: 5.926 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.822/1.822, allocations: 205.1 MB / 222.5 MB, free: 4.379 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.001404/0.001404, allocations: 54.89 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1293, 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.003997/0.1334, allocations: 1.552 MB / 374.7 MB, free: 15.76 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.1359, allocations: 0.9167 MB / 375.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.136, allocations: 0 / 375.6 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.1362, allocations: 11.88 kB / 375.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001608/0.1364, allocations: 19.86 kB / 375.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000379/0.1368, allocations: 55.86 kB / 375.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003061/0.1371, allocations: 171.7 kB / 375.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.1373, allocations: 33.31 kB / 375.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008718/0.1382, allocations: 0.6278 MB / 376.5 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002301/0.1384, allocations: 83.62 kB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.082e-05/0.1385, allocations: 8 kB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.042e-05/0.1385, allocations: 12 kB / 376.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.1387, allocations: 79.69 kB / 376.7 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002442/0.139, allocations: 139 kB / 376.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006178/0.1396, allocations: 454.4 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.1396, allocations: 0 / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.338e-06/0.1396, allocations: 0 / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.1397, allocations: 3.938 kB / 377.3 MB, free: 13.15 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.001344/0.141, allocations: 0.8022 MB / 378.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/0.1411, allocations: 11.97 kB / 378.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.1412, allocations: 48.38 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005074/0.1417, allocations: 298.1 kB / 378.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.1417, allocations: 8.375 kB / 378.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.748e-05/0.1418, allocations: 16.38 kB / 378.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004118/0.1422, allocations: 173.8 kB / 378.7 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.1422, allocations: 3.938 kB / 378.7 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.276e-05/0.1423, allocations: 4 kB / 378.7 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1423, allocations: 0 / 378.7 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.1425, allocations: 83.95 kB / 378.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008671/0.1434, allocations: 0.5004 MB / 379.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000273/0.1436, allocations: 126.5 kB / 379.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.1439, allocations: 104.9 kB / 379.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.1439, allocations: 4 kB / 379.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005502/0.1445, allocations: 238.6 kB / 379.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.1445, allocations: 0 / 379.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001141/0.1456, allocations: 0.6147 MB / 380.3 MB, free: 9.887 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/0.1458, allocations: 203.9 kB / 380.5 MB, free: 9.645 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008449/0.1466, allocations: 0.5639 MB / 381.1 MB, free: 9.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.182e-05/0.1467, allocations: 33.7 kB / 381.1 MB, free: 9.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.1468, allocations: 109.1 kB / 381.2 MB, free: 8.918 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.863e-05/0.1469, allocations: 39.62 kB / 381.3 MB, free: 8.879 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001793/0.1471, allocations: 93.41 kB / 381.4 MB, free: 8.781 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002143/0.1473, allocations: 334.8 kB / 381.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002081/0.1475, allocations: 84.06 kB / 381.8 MB, free: 8.363 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.1477, allocations: 105.5 kB / 381.9 MB, free: 8.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004892/0.1482, allocations: 434.7 kB / 382.3 MB, free: 7.762 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1482, allocations: 0 / 382.3 MB, free: 7.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007976/0.149, allocations: 0.4979 MB / 382.8 MB, free: 7.227 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.1492, allocations: 149.6 kB / 382.9 MB, free: 7.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1492, allocations: 0 / 382.9 MB, free: 7.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.1492, allocations: 4 kB / 382.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.93e-05/0.1493, allocations: 8.016 kB / 382.9 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.1493, allocations: 0 / 382.9 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/0.1494, allocations: 15.94 kB / 383 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002243/0.1497, allocations: 101.2 kB / 383.1 MB, free: 6.926 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.0004935/0.1502, allocations: 411.9 kB / 383.5 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.734e-05/0.1503, allocations: 51.38 kB / 383.5 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001226/0.1504, allocations: 75.47 kB / 383.6 MB, free: 6.359 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1504, allocations: 0 / 383.6 MB, free: 6.359 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.1504, allocations: 4 kB / 383.6 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1504, allocations: 3.938 kB / 383.6 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.1519, allocations: 0.9517 MB / 384.5 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1519, allocations: 0 / 384.5 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.456e-06/0.1519, allocations: 4 kB / 384.5 MB, free: 5.309 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.152, allocations: 0 / 384.5 MB, free: 5.309 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.837e-05/0.152, allocations: 19.98 kB / 384.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.152, allocations: 0 / 384.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.152, allocations: 3.938 kB / 384.6 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.1531, allocations: 0.6634 MB / 385.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004206/0.1535, allocations: 260.3 kB / 385.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.488e-05/0.1536, allocations: 12 kB / 385.5 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.1538, allocations: 11.98 kB / 385.5 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002368/0.154, allocations: 63.88 kB / 385.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.1541, allocations: 105.2 kB / 385.7 MB, free: 4.109 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005944/0.1547, allocations: 418.8 kB / 386.1 MB, free: 3.703 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1548, allocations: 0 / 386.1 MB, free: 3.703 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003662/0.1551, allocations: 56 kB / 386.1 MB, free: 3.648 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.0001969/0.1553, allocations: 119.2 kB / 386.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007746/0.1561, allocations: 0.5321 MB / 386.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1561, allocations: 0 / 386.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004232/0.1566, allocations: 461.1 kB / 387.2 MB, free: 2.418 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008533/0.1574, allocations: 198.1 kB / 387.4 MB, free: 2.223 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.1588, allocations: 0.7522 MB / 388.2 MB, free: 1.445 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005355/0.1594, allocations: 0.8143 MB / 389 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001182/0.1595, allocations: 12.88 kB / 389 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.892e-05/0.1595, allocations: 15.44 kB / 389 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1595, allocations: 0 / 389 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of Templates: time 0.01508/0.1746, allocations: 7.433 MB / 396.5 MB, free: 8.965 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)