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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.00116/0.00116, allocations: 187.5 kB / 8.352 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.362/1.362, allocations: 194.3 MB / 203.1 MB, free: 9.305 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001657/0.001658, allocations: 118.6 kB / 248.1 MB, free: 6.344 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.504e-05/1.506e-05, allocations: 4 kB / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09036/0.09039, allocations: 44.5 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2816/0.372, allocations: 76.89 MB / 419.5 MB, free: 18.86 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/0.3723, allocations: 72.45 kB / 419.5 MB, free: 18.82 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04433/0.4166, allocations: 27.63 MB / 447.2 MB, free: 12.83 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4166, allocations: 0 / 447.2 MB, free: 12.83 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.4167, allocations: 4 kB / 447.2 MB, free: 12.82 MB / 331.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.0006802/0.4174, allocations: 0.6789 MB / 447.8 MB, free: 12.09 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.4174, allocations: 12.59 kB / 447.9 MB, free: 12.08 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.932e-05/0.4175, allocations: 43.48 kB / 447.9 MB, free: 12.04 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003255/0.4178, allocations: 277.5 kB / 448.2 MB, free: 11.73 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.4179, allocations: 6.938 kB / 448.2 MB, free: 11.73 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/0.4179, allocations: 8 kB / 448.2 MB, free: 11.72 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001536/0.4181, allocations: 76.34 kB / 448.3 MB, free: 11.67 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002501/0.4183, allocations: 158.1 kB / 448.4 MB, free: 11.53 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.4183, allocations: 0 / 448.4 MB, free: 11.53 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/0.4184, allocations: 4 kB / 448.4 MB, free: 11.53 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.4184, allocations: 3.953 kB / 448.4 MB, free: 11.52 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006319/0.419, allocations: 474.4 kB / 448.9 MB, free: 11.09 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/0.4192, allocations: 116 kB / 449 MB, free: 11 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.4193, allocations: 100.5 kB / 449.1 MB, free: 10.93 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-06/0.4193, allocations: 0 / 449.1 MB, free: 10.93 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.4196, allocations: 243.9 kB / 449.3 MB, free: 10.7 MB / 331.1 MB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.4196, allocations: 0 / 449.3 MB, free: 10.7 MB / 331.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005559/0.4202, allocations: 356.2 kB / 449.7 MB, free: 10.39 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.787e-05/0.4203, allocations: 195.3 kB / 449.9 MB, free: 10.16 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005172/0.4208, allocations: 484.8 kB / 450.4 MB, free: 9.762 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.4208, allocations: 29.81 kB / 450.4 MB, free: 9.727 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.975e-05/0.4209, allocations: 126.2 kB / 450.5 MB, free: 9.621 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.09e-05/0.421, allocations: 26.47 kB / 450.5 MB, free: 9.602 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.298e-05/0.421, allocations: 8 kB / 450.5 MB, free: 9.594 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4211, allocations: 331.7 kB / 450.9 MB, free: 9.27 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.4212, allocations: 74.88 kB / 450.9 MB, free: 9.219 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.697e-05/0.4214, allocations: 82.47 kB / 451 MB, free: 9.16 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.64e-05/0.4214, allocations: 57.14 kB / 451.1 MB, free: 9.121 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4215, allocations: 0 / 451.1 MB, free: 9.121 MB / 331.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004512/0.4219, allocations: 332 kB / 451.4 MB, free: 8.844 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.258e-05/0.422, allocations: 150.8 kB / 451.5 MB, free: 8.672 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.422, allocations: 0 / 451.5 MB, free: 8.672 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.422, allocations: 4 kB / 451.5 MB, free: 8.668 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.045e-05/0.4221, allocations: 7.953 kB / 451.6 MB, free: 8.66 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.4221, allocations: 160 / 451.6 MB, free: 8.66 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.4222, allocations: 19.89 kB / 451.6 MB, free: 8.641 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.4224, allocations: 104.7 kB / 451.7 MB, free: 8.539 MB / 331.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001921/0.4226, allocations: 269.8 kB / 451.9 MB, free: 8.246 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-05/0.4226, allocations: 43.53 kB / 452 MB, free: 8.203 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.4227, allocations: 65.67 kB / 452 MB, free: 8.148 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.4227, allocations: 4 kB / 452 MB, free: 8.145 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4227, allocations: 3.953 kB / 452.1 MB, free: 8.141 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.4228, allocations: 3.984 kB / 452.1 MB, free: 8.137 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008139/0.4236, allocations: 0.7412 MB / 452.8 MB, free: 7.465 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4236, allocations: 1.156 kB / 452.8 MB, free: 7.465 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.781e-06/0.4236, allocations: 4 kB / 452.8 MB, free: 7.461 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.4236, allocations: 0 / 452.8 MB, free: 7.461 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.3e-05/0.4237, allocations: 19.98 kB / 452.8 MB, free: 7.441 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.4237, allocations: 0 / 452.8 MB, free: 7.441 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4237, allocations: 3.953 kB / 452.8 MB, free: 7.438 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005453/0.4242, allocations: 480.3 kB / 453.3 MB, free: 7.016 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000314/0.4245, allocations: 263.4 kB / 453.6 MB, free: 6.785 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.382e-05/0.4246, allocations: 8 kB / 453.6 MB, free: 6.777 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.4248, allocations: 19.11 kB / 453.6 MB, free: 6.762 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.4249, allocations: 57.5 kB / 453.6 MB, free: 6.715 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/0.4251, allocations: 110 kB / 453.7 MB, free: 6.613 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0004122/0.4255, allocations: 403.5 kB / 454.1 MB, free: 6.289 MB / 331.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4255, allocations: 0 / 454.1 MB, free: 6.289 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.000285/0.4258, allocations: 48 kB / 454.2 MB, free: 6.242 MB / 331.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.sel,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,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001435/0.4259, allocations: 115.2 kB / 454.3 MB, free: 6.121 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0004686/0.4264, allocations: 0.5164 MB / 454.8 MB, free: 5.645 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4264, allocations: 3.938 kB / 454.8 MB, free: 5.641 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003055/0.4267, allocations: 449.2 kB / 455.3 MB, free: 5.227 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007212/0.4275, allocations: 167.4 kB / 455.4 MB, free: 5.09 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009426/0.4284, allocations: 0.5921 MB / 456 MB, free: 4.539 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/0.4288, allocations: 0.8244 MB / 456.8 MB, free: 3.703 MB / 331.1 MB Notification: Performance of simCode: alias equations: time 5.205e-05/0.4289, allocations: 8.547 kB / 456.8 MB, free: 3.695 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.139e-05/0.4289, allocations: 19.38 kB / 456.9 MB, free: 3.676 MB / 331.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4289, allocations: 4 kB / 456.9 MB, free: 3.672 MB / 331.1 MB Notification: Performance of Templates: time 0.009099/0.438, allocations: 6.347 MB / 463.2 MB, free: 13.19 MB / 347.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)