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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001993/0.001993, allocations: 191.2 kB / 8.135 MB, free: 2.199 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.113/1.113, allocations: 194.2 MB / 202.8 MB, free: 8.762 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.001717/0.001716, allocations: 117.5 kB / 247.7 MB, free: 6.25 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.162e-06/6.192e-06, allocations: 0 / 297.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07216/0.07218, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1952/0.2674, allocations: 78.22 MB / 420.3 MB, free: 17.15 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001787/0.2677, allocations: 75.64 kB / 420.3 MB, free: 17.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.09803/0.3657, allocations: 54.08 MB / 474.4 MB, free: 2.891 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.127e-05/0.3658, allocations: 16 kB / 474.4 MB, free: 2.875 MB / 346.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.001721/0.3675, allocations: 0.9697 MB / 475.4 MB, free: 1.828 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3676, allocations: 12.03 kB / 475.4 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003059/0.3679, allocations: 75.16 kB / 475.5 MB, free: 1.742 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008728/0.3688, allocations: 464.9 kB / 475.9 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.377e-05/0.3688, allocations: 20 kB / 476 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000238/0.3691, allocations: 36 kB / 476 MB, free: 1.199 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001221/0.3703, allocations: 0.5961 MB / 476.6 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.3717, allocations: 0.7377 MB / 477.3 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.3717, allocations: 3.906 kB / 477.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001231/0.3719, allocations: 7.938 kB / 477.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.3719, allocations: 12 kB / 477.4 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00325/0.3752, allocations: 1.59 MB / 478.9 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000877/0.3761, allocations: 0.5076 MB / 479.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000438/0.3765, allocations: 278.2 kB / 479.7 MB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.3766, allocations: 4.5 kB / 479.7 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007761/0.3774, allocations: 0.5294 MB / 480.3 MB, free: 12.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.287e-06/0.3774, allocations: 0 / 480.3 MB, free: 12.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.001468/0.3789, allocations: 0.7576 MB / 481 MB, free: 12.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.528e-05/0.379, allocations: 196.4 kB / 481.2 MB, free: 11.86 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.3794, allocations: 349.6 kB / 481.6 MB, free: 11.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001202/0.3796, allocations: 37.7 kB / 481.6 MB, free: 11.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.3797, allocations: 200.8 kB / 481.8 MB, free: 11.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.3799, allocations: 114.6 kB / 481.9 MB, free: 11.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.38, allocations: 4 kB / 481.9 MB, free: 11.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.3802, allocations: 362.7 kB / 482.3 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004726/0.3807, allocations: 277.2 kB / 482.5 MB, free: 10.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005261/0.3812, allocations: 347.1 kB / 482.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000537/0.3817, allocations: 299.8 kB / 483.2 MB, free: 9.859 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.3818, allocations: 4 kB / 483.2 MB, free: 9.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001531/0.3833, allocations: 0.8527 MB / 484 MB, free: 8.996 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.3833, allocations: 10.44 kB / 484 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.3833, allocations: 0 / 484 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.3834, allocations: 11.91 kB / 484 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.3836, allocations: 107.8 kB / 484.1 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.3837, allocations: 4 kB / 484.1 MB, free: 8.867 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005885/0.3843, allocations: 75.62 kB / 484.2 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005471/0.3848, allocations: 0.5658 MB / 484.8 MB, free: 8.227 MB / 362.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.0004395/0.3853, allocations: 309.1 kB / 485.1 MB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.3854, allocations: 51.44 kB / 485.1 MB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.3856, allocations: 48.53 kB / 485.2 MB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.809e-06/0.3856, allocations: 8 kB / 485.2 MB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3856, allocations: 0 / 485.2 MB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.3856, allocations: 0 / 485.2 MB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000939/0.3865, allocations: 0.5763 MB / 485.8 MB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.3866, allocations: 0 / 485.8 MB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001976/0.3868, allocations: 99.81 kB / 485.9 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.3868, allocations: 0 / 485.9 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001577/0.3869, allocations: 90 kB / 486 MB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.3869, allocations: 4 kB / 486 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.387, allocations: 4 kB / 486 MB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001418/0.3884, allocations: 0.8024 MB / 486.8 MB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005034/0.3889, allocations: 260.5 kB / 487 MB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002479/0.3892, allocations: 12 kB / 487 MB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004408/0.3896, allocations: 71.64 kB / 487.1 MB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003464/0.39, allocations: 144.4 kB / 487.2 MB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005362/0.3905, allocations: 0.558 MB / 487.8 MB, free: 5.105 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002438/0.3908, allocations: 236.6 kB / 488 MB, free: 4.875 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006856/0.3915, allocations: 116 kB / 488.1 MB, free: 4.762 MB / 362.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.0002914/0.3918, allocations: 156.9 kB / 488.3 MB, free: 4.598 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.3931, allocations: 0.8354 MB / 489.1 MB, free: 3.727 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3931, allocations: 0 / 489.1 MB, free: 3.727 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007305/0.3938, allocations: 0.5373 MB / 489.7 MB, free: 3.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/0.3958, allocations: 463.7 kB / 490.1 MB, free: 2.715 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002375/0.3982, allocations: 0.8657 MB / 491 MB, free: 1.824 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003669/0.4019, allocations: 2.176 MB / 493.2 MB, free: 15.61 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.4019, allocations: 0 / 493.2 MB, free: 15.61 MB / 378.7 MB Notification: Performance of Templates: time 0.03316/0.435, allocations: 25 MB / 0.506 GB, free: 5.723 MB / 394.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)