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") [: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.001149/0.001149, allocations: 191.4 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.111/1.111, allocations: 194.2 MB / 202.8 MB, free: 8.672 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.001862/0.001862, allocations: 120.3 kB / 247.7 MB, free: 6.363 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.102e-05/1.106e-05, allocations: 4 kB / 297.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07944/0.07948, allocations: 44.48 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2184/0.2979, allocations: 76.82 MB / 418.9 MB, free: 18.44 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001789/0.2982, allocations: 67.17 kB / 418.9 MB, free: 18.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.04586/0.344, allocations: 27.04 MB / 446 MB, free: 13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.3441, allocations: 4 kB / 446 MB, free: 13 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.0006192/0.3447, allocations: 0.6805 MB / 446.7 MB, free: 12.26 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.3447, allocations: 8.031 kB / 446.7 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.514e-05/0.3448, allocations: 43.28 kB / 446.7 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003635/0.3452, allocations: 273.4 kB / 447 MB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.3452, allocations: 11.55 kB / 447 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.873e-05/0.3453, allocations: 12 kB / 447 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001609/0.3455, allocations: 72.05 kB / 447.1 MB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000252/0.3457, allocations: 158.3 kB / 447.2 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.3457, allocations: 0 / 447.2 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.328e-05/0.3458, allocations: 7.938 kB / 447.2 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.3458, allocations: 7.938 kB / 447.2 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007753/0.3466, allocations: 486.3 kB / 447.7 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.3468, allocations: 116.5 kB / 447.8 MB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.3469, allocations: 108.2 kB / 447.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.346e-06/0.3469, allocations: 4 kB / 447.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.3472, allocations: 220.1 kB / 448.2 MB, free: 10.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.3472, allocations: 0 / 448.2 MB, free: 10.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004433/0.3477, allocations: 252.7 kB / 448.4 MB, free: 10.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.794e-05/0.3478, allocations: 191.7 kB / 448.6 MB, free: 10.42 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000557/0.3483, allocations: 485.9 kB / 449.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/0.3484, allocations: 33.39 kB / 449.1 MB, free: 9.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.615e-05/0.3484, allocations: 104.7 kB / 449.2 MB, free: 9.879 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.335e-05/0.3485, allocations: 19.34 kB / 449.2 MB, free: 9.863 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.32e-05/0.3485, allocations: 7.188 kB / 449.2 MB, free: 9.859 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.3486, allocations: 337.5 kB / 449.6 MB, free: 9.527 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.3488, allocations: 68.81 kB / 449.6 MB, free: 9.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.3489, allocations: 81.97 kB / 449.7 MB, free: 9.422 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.349, allocations: 61.28 kB / 449.8 MB, free: 9.379 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.349, allocations: 0 / 449.8 MB, free: 9.379 MB / 330.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003781/0.3494, allocations: 243 kB / 450 MB, free: 9.176 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.3494, allocations: 8 kB / 450 MB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3494, allocations: 80 / 450 MB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.3494, allocations: 0 / 450 MB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.752e-05/0.3495, allocations: 0 / 450 MB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.3495, allocations: 8.047 kB / 450 MB, free: 9.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.3497, allocations: 15.91 kB / 450 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.3498, allocations: 103 kB / 450.1 MB, free: 9.043 MB / 330.7 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.0002111/0.35, allocations: 279.3 kB / 450.4 MB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.056e-05/0.3501, allocations: 43.53 kB / 450.4 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001253/0.3502, allocations: 68.2 kB / 450.5 MB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.3502, allocations: 4 kB / 450.5 MB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3502, allocations: 1.781 kB / 450.5 MB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.3502, allocations: 3.984 kB / 450.5 MB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007398/0.351, allocations: 0.6306 MB / 451.2 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.351, allocations: 0 / 451.2 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.679e-06/0.351, allocations: 0 / 451.2 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.351, allocations: 7.906 kB / 451.2 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.126e-05/0.3511, allocations: 23.42 kB / 451.2 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.3511, allocations: 0 / 451.2 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3511, allocations: 0 / 451.2 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000457/0.3515, allocations: 375.2 kB / 451.6 MB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/0.3519, allocations: 263.7 kB / 451.8 MB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.234e-05/0.352, allocations: 11.62 kB / 451.8 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.3522, allocations: 23.92 kB / 451.8 MB, free: 7.426 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.3523, allocations: 46.88 kB / 451.9 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.3524, allocations: 100.9 kB / 452 MB, free: 7.297 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0004568/0.3529, allocations: 392.8 kB / 452.4 MB, free: 6.977 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003161/0.3532, allocations: 51.59 kB / 452.4 MB, free: 6.93 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: 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.0001677/0.3534, allocations: 119 kB / 452.5 MB, free: 6.809 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003934/0.3538, allocations: 334.3 kB / 452.9 MB, free: 6.512 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3538, allocations: 6.625 kB / 452.9 MB, free: 6.508 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002781/0.3541, allocations: 325.9 kB / 453.2 MB, free: 6.246 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007153/0.3548, allocations: 156.6 kB / 453.3 MB, free: 6.113 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.3559, allocations: 0.593 MB / 453.9 MB, free: 5.562 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004928/0.3564, allocations: 0.837 MB / 454.8 MB, free: 4.707 MB / 330.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3564, allocations: 0 / 454.8 MB, free: 4.707 MB / 330.7 MB Notification: Performance of Templates: time 0.00985/0.3662, allocations: 6.276 MB / 461.1 MB, free: 14.29 MB / 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)