Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Multiplexer.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.Multiplexer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Multiplexer") translateModel(Modelica.Electrical.Digital.Examples.Multiplexer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Multiplexer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001122/0.001122, allocations: 182 kB / 13.64 MB, free: 1.676 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.318/1.318, allocations: 194.3 MB / 208.4 MB, free: 6.738 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.001634/0.001635, allocations: 120.7 kB / 253.5 MB, free: 9.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.781e-05/2.784e-05, allocations: 0 / 304.9 MB, free: 29.81 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06621/0.06626, allocations: 44.51 MB / 349.4 MB, free: 1.285 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2629/0.3291, allocations: 78.97 MB / 428.4 MB, free: 10.22 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001625/0.3293, allocations: 69.78 kB / 428.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09528/0.4246, allocations: 55.17 MB / 483.6 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.4247, allocations: 0 / 483.6 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.117e-05/0.4247, allocations: 23.94 kB / 483.7 MB, free: 0.7344 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001275/0.426, allocations: 0.9659 MB / 484.6 MB, free: 15.69 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.426, allocations: 8.031 kB / 484.6 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.4262, allocations: 79.09 kB / 484.7 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007634/0.427, allocations: 468.9 kB / 485.2 MB, free: 15.11 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.697e-05/0.4271, allocations: 49.31 kB / 485.2 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.4272, allocations: 56 kB / 485.3 MB, free: 15.01 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.4286, allocations: 0.8027 MB / 486.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.4286, allocations: 4 kB / 486.1 MB, free: 14.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/0.4287, allocations: 24 kB / 486.1 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.4287, allocations: 16 kB / 486.1 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.4298, allocations: 0.6142 MB / 486.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002633/0.4324, allocations: 1.666 MB / 488.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009429/0.4334, allocations: 0.5639 MB / 489 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004851/0.4339, allocations: 286.5 kB / 489.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.434, allocations: 8.562 kB / 489.3 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007603/0.4348, allocations: 0.5417 MB / 489.8 MB, free: 10.4 MB / 346.7 MB Notification: Performance of pre-optimization done (n=56): time 2.454e-06/0.4348, allocations: 0 / 489.8 MB, free: 10.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=56): time 0.001606/0.4364, allocations: 0.9832 MB / 490.8 MB, free: 9.375 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.168e-05/0.4365, allocations: 192.5 kB / 491 MB, free: 9.145 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003929/0.4369, allocations: 367.1 kB / 491.3 MB, free: 8.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001052/0.437, allocations: 45.7 kB / 491.4 MB, free: 8.719 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.4372, allocations: 236.9 kB / 491.6 MB, free: 8.484 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.4374, allocations: 126.5 kB / 491.7 MB, free: 8.359 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.507e-05/0.4375, allocations: 16 kB / 491.7 MB, free: 8.344 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.4376, allocations: 358.8 kB / 492.1 MB, free: 7.984 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005314/0.4382, allocations: 285.5 kB / 492.4 MB, free: 7.707 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005486/0.4387, allocations: 369.6 kB / 492.7 MB, free: 7.328 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006366/0.4394, allocations: 449.1 kB / 493.2 MB, free: 6.859 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4394, allocations: 0 / 493.2 MB, free: 6.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00166/0.441, allocations: 1.095 MB / 494.3 MB, free: 5.727 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.4412, allocations: 148.5 kB / 494.4 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.4412, allocations: 4 kB / 494.4 MB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.4412, allocations: 4 kB / 494.4 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002475/0.4415, allocations: 107.9 kB / 494.5 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.4415, allocations: 15.88 kB / 494.5 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005303/0.442, allocations: 79.72 kB / 494.6 MB, free: 5.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005153/0.4425, allocations: 0.5697 MB / 495.2 MB, free: 4.773 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 75 ($whenCondition1,MUX.d,$PRE.MUX.Or1.auxiliary_n,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,$PRE.MUX.And1.auxiliary_n,$PRE.MUX.And2.auxiliary_n,$PRE.MUX.And3.auxiliary_n,$PRE.MUX.And4.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,D0.y,D1.y,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,$PRE.MUX.Not1.auxiliary,MUX.Not1.auxiliary,$PRE.MUX.Not2.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 71 * 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.0003697/0.4429, allocations: 333.8 kB / 495.5 MB, free: 4.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.4431, allocations: 55.38 kB / 495.6 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.4432, allocations: 52.55 kB / 495.6 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.4432, allocations: 8 kB / 495.6 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.4432, allocations: 0 / 495.6 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.4432, allocations: 3.984 kB / 495.6 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008697/0.4441, allocations: 0.654 MB / 496.3 MB, free: 3.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.4441, allocations: 0 / 496.3 MB, free: 3.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001526/0.4443, allocations: 87.89 kB / 496.4 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.4443, allocations: 3.953 kB / 496.4 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000131/0.4444, allocations: 91.94 kB / 496.5 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.4444, allocations: 4 kB / 496.5 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.4444, allocations: 0 / 496.5 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.446, allocations: 1.028 MB / 497.5 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004148/0.4464, allocations: 256.5 kB / 497.7 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/0.4466, allocations: 31.89 kB / 497.8 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003589/0.447, allocations: 67.84 kB / 497.8 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000315/0.4473, allocations: 156.3 kB / 498 MB, free: 1.809 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005136/0.4478, allocations: 0.5541 MB / 498.5 MB, free: 1.254 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002429/0.448, allocations: 246.1 kB / 498.8 MB, free: 1.012 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4481, allocations: 0 / 498.8 MB, free: 1.012 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005248/0.4486, allocations: 144 kB / 498.9 MB, free: 0.8711 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: 56 ($whenCondition1,CLK.y,CLK.t_i,D0.y,D1.y,MUX.d,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,MUX.Not1.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 23 (Enable.y,FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,D3.y,D2.y,MUX.Not2.auxiliary,MUX.Not1.auxiliary,MUX.And4.auxiliary_n,MUX.And3.auxiliary_n,MUX.And2.auxiliary_n,MUX.And1.auxiliary_n,MUX.Or1.auxiliary_n,D1.y,D0.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 1 * 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.0002593/0.4489, allocations: 165 kB / 499.1 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.4503, allocations: 0.997 MB / 0.4884 GB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.4503, allocations: 0 / 0.4884 GB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007822/0.4511, allocations: 0.6719 MB / 0.489 GB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001897/0.453, allocations: 480.6 kB / 0.4895 GB, free: 14.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.4546, allocations: 0.879 MB / 0.4903 GB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000494/0.4551, allocations: 0.8986 MB / 0.4912 GB, free: 12.61 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002477/0.4576, allocations: 1.504 MB / 0.4927 GB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001345/0.4589, allocations: 486.2 kB / 0.4931 GB, free: 10.63 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4589, allocations: 0 / 0.4931 GB, free: 10.63 MB / 362.7 MB Notification: Performance of Templates: time 0.02298/0.4819, allocations: 17.59 MB / 0.5103 GB, free: 8.562 MB / 378.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Multiplexer.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Multiplexer.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Multiplexer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1)