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.001153/0.001153, allocations: 178.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.299/1.299, allocations: 194.5 MB / 211.6 MB, free: 3.043 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001548/0.001548, allocations: 112.3 kB / 256.9 MB, free: 4.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00031/0.00031, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08232/0.08265, allocations: 44.5 MB / 355.1 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2408/0.3235, allocations: 77.64 MB / 432.7 MB, free: 11.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/0.3237, allocations: 77.42 kB / 432.8 MB, free: 11.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04626/0.37, allocations: 27.62 MB / 460.4 MB, free: 3.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.37, allocations: 0 / 460.4 MB, free: 3.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.37, allocations: 4 kB / 460.4 MB, free: 3.016 MB / 330.7 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.0006705/0.3707, allocations: 0.7443 MB / 461.1 MB, free: 2.191 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.3708, allocations: 12.03 kB / 461.2 MB, free: 2.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.383e-05/0.3708, allocations: 47.48 kB / 461.2 MB, free: 2.133 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000338/0.3712, allocations: 273.2 kB / 461.5 MB, free: 1.824 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.3712, allocations: 8 kB / 461.5 MB, free: 1.816 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.168e-05/0.3713, allocations: 12 kB / 461.5 MB, free: 1.805 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003046/0.3716, allocations: 169.5 kB / 461.7 MB, free: 1.633 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3716, allocations: 0 / 461.7 MB, free: 1.633 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.676e-05/0.3716, allocations: 4 kB / 461.7 MB, free: 1.629 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3716, allocations: 0 / 461.7 MB, free: 1.629 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.3718, allocations: 91.84 kB / 461.8 MB, free: 1.539 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007453/0.3726, allocations: 0.4927 MB / 462.2 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/0.3728, allocations: 122.5 kB / 462.4 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.308e-06/0.3728, allocations: 0 / 462.4 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00032/0.3731, allocations: 246.7 kB / 462.6 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.3731, allocations: 0 / 462.6 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0009871/0.3741, allocations: 0.7384 MB / 463.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.3742, allocations: 203.8 kB / 463.5 MB, free: 15.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005551/0.3748, allocations: 0.5007 MB / 464 MB, free: 15.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.3749, allocations: 33.7 kB / 464.1 MB, free: 15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.927e-05/0.3749, allocations: 113.1 kB / 464.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.674e-05/0.375, allocations: 27.62 kB / 464.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.803e-05/0.375, allocations: 1.312 kB / 464.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3751, allocations: 334.8 kB / 464.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.3753, allocations: 79.95 kB / 464.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.3754, allocations: 109.6 kB / 464.7 MB, free: 14.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.3757, allocations: 208.5 kB / 464.9 MB, free: 14.1 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3757, allocations: 0 / 464.9 MB, free: 14.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006088/0.3763, allocations: 482.1 kB / 465.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.493e-05/0.3764, allocations: 156.4 kB / 465.6 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3764, allocations: 4 kB / 465.6 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.3764, allocations: 3.953 kB / 465.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.737e-05/0.3764, allocations: 3.938 kB / 465.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.3765, allocations: 4.031 kB / 465.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.3766, allocations: 19.98 kB / 465.6 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.3767, allocations: 93.3 kB / 465.7 MB, free: 13.29 MB / 346.7 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,$whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003467/0.3771, allocations: 398 kB / 466.1 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.166e-05/0.3771, allocations: 47.52 kB / 466.1 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.3772, allocations: 67.47 kB / 466.2 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.3773, allocations: 8.016 kB / 466.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.3773, allocations: 11.94 kB / 466.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3773, allocations: 0 / 466.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.3783, allocations: 0.9322 MB / 467.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3783, allocations: 0 / 467.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.278e-06/0.3783, allocations: 0 / 467.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.3783, allocations: 4 kB / 467.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.727e-05/0.3784, allocations: 23.92 kB / 467.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.3784, allocations: 4 kB / 467.2 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.3784, allocations: 3.984 kB / 467.2 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007153/0.3791, allocations: 0.6399 MB / 467.8 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000334/0.3795, allocations: 252.4 kB / 468.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.332e-05/0.3795, allocations: 15.98 kB / 468.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.3797, allocations: 19.89 kB / 468.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.3798, allocations: 55.92 kB / 468.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.335e-05/0.3799, allocations: 105.2 kB / 468.2 MB, free: 10.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004626/0.3804, allocations: 422.8 kB / 468.7 MB, free: 10.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3804, allocations: 5.219 kB / 468.7 MB, free: 10.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000275/0.3807, allocations: 52 kB / 468.7 MB, free: 10.05 MB / 346.7 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) * 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 (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.000142/0.3808, allocations: 107.2 kB / 468.8 MB, free: 9.938 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006011/0.3815, allocations: 0.5399 MB / 469.4 MB, free: 9.336 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3815, allocations: 0 / 469.4 MB, free: 9.336 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003583/0.3818, allocations: 461 kB / 469.8 MB, free: 8.824 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006162/0.3825, allocations: 160.5 kB / 470 MB, free: 8.672 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.3836, allocations: 0.8257 MB / 470.8 MB, free: 7.816 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.384, allocations: 0.8304 MB / 471.6 MB, free: 6.957 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.086e-05/0.384, allocations: 15.94 kB / 471.6 MB, free: 6.945 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.177e-05/0.3841, allocations: 15.44 kB / 471.7 MB, free: 6.93 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3841, allocations: 0 / 471.7 MB, free: 6.93 MB / 346.7 MB Notification: Performance of Templates: time 0.008576/0.3926, allocations: 6.584 MB / 478.2 MB, free: 208 kB / 346.7 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)