Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.Multiplexer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer") translateModel(Modelica.Electrical.Digital.Examples.Multiplexer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.003883/0.003883, allocations: 177.3 kB / 7.453 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.508/1.508, allocations: 170.6 MB / 178.4 MB, free: 15.39 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001723/0.001723, allocations: 103.9 kB / 217.7 MB, free: 8.148 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.186e-05/1.19e-05, allocations: 1.375 kB / 261.7 MB, free: 8.598 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09777/0.09779, allocations: 38.77 MB / 300.5 MB, free: 2.465 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3241/0.4219, allocations: 72.94 MB / 373.5 MB, free: 20.11 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/0.4223, allocations: 68.8 kB / 373.5 MB, free: 20.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.09335/0.5157, allocations: 54.08 MB / 427.6 MB, free: 5.086 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.002e-05/0.5158, allocations: 20.31 kB / 427.6 MB, free: 5.078 MB / 314.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.002559/0.5184, allocations: 0.9684 MB / 428.6 MB, free: 4.199 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.5184, allocations: 8.188 kB / 428.6 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005712/0.519, allocations: 79.28 kB / 428.7 MB, free: 4.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.5203, allocations: 471.7 kB / 429.1 MB, free: 3.777 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.125e-05/0.5204, allocations: 20 kB / 429.2 MB, free: 3.758 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000251/0.5206, allocations: 36 kB / 429.2 MB, free: 3.723 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001477/0.5221, allocations: 0.5883 MB / 429.8 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.5235, allocations: 0.7416 MB / 430.5 MB, free: 2.383 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.5235, allocations: 3.906 kB / 430.5 MB, free: 2.379 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.5236, allocations: 4 kB / 430.5 MB, free: 2.375 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.5236, allocations: 16 kB / 430.5 MB, free: 2.359 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003176/0.5268, allocations: 1.588 MB / 432.1 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000787/0.5276, allocations: 0.519 MB / 432.7 MB, free: 236 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003938/0.528, allocations: 278.1 kB / 432.9 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001168/0.5282, allocations: 8.5 kB / 432.9 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008242/0.529, allocations: 0.5203 MB / 433.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 3.456e-06/0.529, allocations: 0 / 433.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.00182/0.5308, allocations: 0.7576 MB / 434.2 MB, free: 14.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001976/0.5311, allocations: 196.4 kB / 434.4 MB, free: 14.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005482/0.5316, allocations: 345.6 kB / 434.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001239/0.5318, allocations: 41.7 kB / 434.8 MB, free: 14.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.5319, allocations: 200.8 kB / 435 MB, free: 13.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002068/0.5321, allocations: 122.6 kB / 435.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.5323, allocations: 7.984 kB / 435.1 MB, free: 13.69 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.5325, allocations: 354.8 kB / 435.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005124/0.533, allocations: 269.2 kB / 435.7 MB, free: 13.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005823/0.5336, allocations: 347.1 kB / 436.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006/0.5342, allocations: 311.4 kB / 436.4 MB, free: 12.4 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.505e-06/0.5342, allocations: 4 kB / 436.4 MB, free: 12.4 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001769/0.536, allocations: 0.8493 MB / 437.2 MB, free: 11.55 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.536, allocations: 4 kB / 437.2 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.536, allocations: 7.922 kB / 437.2 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-05/0.5361, allocations: 11.91 kB / 437.2 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.5364, allocations: 99.88 kB / 437.3 MB, free: 11.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.5364, allocations: 7.938 kB / 437.3 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006615/0.537, allocations: 75.7 kB / 437.4 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006462/0.5377, allocations: 0.558 MB / 438 MB, free: 10.79 MB / 330.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.0006069/0.5383, allocations: 317.3 kB / 438.3 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001942/0.5385, allocations: 47.44 kB / 438.3 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.5387, allocations: 44.55 kB / 438.4 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.5387, allocations: 8 kB / 438.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.5387, allocations: 0 / 438.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.5387, allocations: 7.984 kB / 438.4 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.5398, allocations: 0.5757 MB / 439 MB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.5398, allocations: 0 / 439 MB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001938/0.54, allocations: 91.89 kB / 439.1 MB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.54, allocations: 0 / 439.1 MB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001713/0.5402, allocations: 87.94 kB / 439.1 MB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.5402, allocations: 4 kB / 439.1 MB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.5402, allocations: 0 / 439.1 MB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001524/0.5418, allocations: 0.8063 MB / 439.9 MB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005395/0.5423, allocations: 260.5 kB / 440.2 MB, free: 8.449 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002444/0.5426, allocations: 16 kB / 440.2 MB, free: 8.434 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004355/0.543, allocations: 55.77 kB / 440.3 MB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003869/0.5434, allocations: 152.3 kB / 440.4 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006815/0.5441, allocations: 0.5618 MB / 441 MB, free: 7.668 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003072/0.5444, allocations: 244.6 kB / 441.2 MB, free: 7.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008795/0.5453, allocations: 116 kB / 441.3 MB, free: 7.316 MB / 330.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.0003717/0.5457, allocations: 156.9 kB / 441.5 MB, free: 7.152 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.5472, allocations: 0.8424 MB / 442.3 MB, free: 6.285 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5472, allocations: 0 / 442.3 MB, free: 6.285 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00079/0.548, allocations: 0.5334 MB / 442.9 MB, free: 5.723 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001939/0.55, allocations: 452.6 kB / 443.3 MB, free: 5.277 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.5523, allocations: 0.8701 MB / 444.2 MB, free: 4.379 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004028/0.5564, allocations: 2.18 MB / 446.4 MB, free: 2.164 MB / 330.7 MB Notification: Performance of SimCode: time 9.21e-07/0.5564, allocations: 0 / 446.4 MB, free: 2.164 MB / 330.7 MB Notification: Performance of Templates: time 0.03601/0.5924, allocations: 25.01 MB / 471.4 MB, free: 8.246 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1)