Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009133/0.0009134, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000928/0.0009283, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.999/1.999, allocations: 205.4 MB / 222.1 MB, free: 5.633 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005137/0.0005138, allocations: 8 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3639, allocations: 47.59 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00181/0.3658, allocations: 1.237 MB / 327.7 MB, free: 436 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.3678, allocations: 0.8643 MB / 328.6 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.734e-05/0.3679, allocations: 1.344 kB / 328.6 MB, free: 15.79 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.18e-05/0.368, allocations: 17.2 kB / 328.6 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.233e-05/0.3681, allocations: 20.81 kB / 328.6 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.3684, allocations: 29.12 kB / 328.6 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001997/0.3686, allocations: 121.9 kB / 328.8 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.3688, allocations: 23 kB / 328.8 MB, free: 15.65 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009725/0.3697, allocations: 0.5705 MB / 329.4 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.37, allocations: 105.8 kB / 329.5 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.012e-05/0.37, allocations: 4.594 kB / 329.5 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.327e-05/0.3701, allocations: 3.656 kB / 329.5 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.3702, allocations: 73.78 kB / 329.5 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.3703, allocations: 79.7 kB / 329.6 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004008/0.3707, allocations: 360 kB / 330 MB, free: 15.01 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3707, allocations: 1.344 kB / 330 MB, free: 15.01 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3707, allocations: 0 / 330 MB, free: 15.01 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.3707, allocations: 0 / 330 MB, free: 15.01 MB / 270.1 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.0008545/0.3716, allocations: 0.7448 MB / 330.7 MB, free: 14.27 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.3717, allocations: 10 kB / 330.7 MB, free: 14.27 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.873e-05/0.3718, allocations: 40.78 kB / 330.8 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004138/0.3722, allocations: 278.9 kB / 331 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.3722, allocations: 5.156 kB / 331 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.3723, allocations: 8.688 kB / 331.1 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004476/0.3727, allocations: 168.7 kB / 331.2 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.3728, allocations: 0 / 331.2 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.268e-05/0.3728, allocations: 4.219 kB / 331.2 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.3728, allocations: 6.125 kB / 331.2 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002141/0.3731, allocations: 90.23 kB / 331.3 MB, free: 13.84 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008991/0.374, allocations: 0.4944 MB / 331.8 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003185/0.3743, allocations: 126.1 kB / 331.9 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/0.3746, allocations: 119.2 kB / 332 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.3746, allocations: 1.062 kB / 332 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005376/0.3751, allocations: 240 kB / 332.3 MB, free: 13.09 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 1.783e-06/0.3751, allocations: 3.938 kB / 332.3 MB, free: 13.09 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.00134/0.3765, allocations: 0.6144 MB / 332.9 MB, free: 12.73 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000169/0.3767, allocations: 191.1 kB / 333.1 MB, free: 12.51 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009255/0.3776, allocations: 0.5775 MB / 333.7 MB, free: 12.01 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/0.3777, allocations: 33.7 kB / 333.7 MB, free: 11.97 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.3778, allocations: 109.1 kB / 333.8 MB, free: 11.86 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.663e-05/0.3779, allocations: 35.59 kB / 333.8 MB, free: 11.82 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.233e-05/0.3779, allocations: 8 kB / 333.8 MB, free: 11.82 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.3781, allocations: 330.8 kB / 334.2 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.3783, allocations: 83.95 kB / 334.3 MB, free: 11.4 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.3784, allocations: 97.61 kB / 334.3 MB, free: 11.3 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002602/0.3787, allocations: 212.5 kB / 334.6 MB, free: 11.06 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3787, allocations: 0 / 334.6 MB, free: 11.06 MB / 270.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007108/0.3794, allocations: 0.498 MB / 335.1 MB, free: 10.53 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.3796, allocations: 156.5 kB / 335.2 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3796, allocations: 0 / 335.2 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.3796, allocations: 0 / 335.2 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.938e-05/0.3797, allocations: 7.938 kB / 335.2 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/0.3797, allocations: 0 / 335.2 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.3799, allocations: 19.94 kB / 335.2 MB, free: 10.32 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.38, allocations: 101.3 kB / 335.3 MB, free: 10.21 MB / 270.1 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.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,Select.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.0004395/0.3805, allocations: 396.1 kB / 335.7 MB, free: 9.785 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.815e-05/0.3805, allocations: 43.53 kB / 335.8 MB, free: 9.742 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.3807, allocations: 71.47 kB / 335.8 MB, free: 9.668 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3807, allocations: 0 / 335.8 MB, free: 9.668 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3807, allocations: 0 / 335.8 MB, free: 9.668 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3807, allocations: 0 / 335.8 MB, free: 9.668 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.3819, allocations: 0.9711 MB / 336.8 MB, free: 8.609 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.382, allocations: 4 kB / 336.8 MB, free: 8.605 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.514e-06/0.382, allocations: 0 / 336.8 MB, free: 8.605 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.382, allocations: 0 / 336.8 MB, free: 8.605 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.112e-05/0.382, allocations: 23.98 kB / 336.8 MB, free: 8.582 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.382, allocations: 0 / 336.8 MB, free: 8.582 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.382, allocations: 0 / 336.8 MB, free: 8.582 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008305/0.3829, allocations: 0.6556 MB / 337.5 MB, free: 7.879 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003555/0.3832, allocations: 252.6 kB / 337.7 MB, free: 7.613 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.218e-05/0.3833, allocations: 20 kB / 337.8 MB, free: 7.594 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.3835, allocations: 19.92 kB / 337.8 MB, free: 7.574 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.3837, allocations: 55.92 kB / 337.8 MB, free: 7.52 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.3838, allocations: 101.2 kB / 337.9 MB, free: 7.422 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000529/0.3843, allocations: 434.7 kB / 338.3 MB, free: 7 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3843, allocations: 0 / 338.3 MB, free: 7 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003099/0.3847, allocations: 51.91 kB / 338.4 MB, free: 6.949 MB / 270.1 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.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,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,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.0001997/0.3849, allocations: 115.2 kB / 338.5 MB, free: 6.824 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006404/0.3855, allocations: 0.5321 MB / 339 MB, free: 6.23 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3855, allocations: 0 / 339 MB, free: 6.23 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004152/0.3859, allocations: 472.9 kB / 339.5 MB, free: 5.707 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008825/0.3868, allocations: 165.9 kB / 339.7 MB, free: 5.547 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.3882, allocations: 0.8416 MB / 340.5 MB, free: 4.68 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004889/0.3887, allocations: 0.8223 MB / 341.3 MB, free: 3.832 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.877e-05/0.3888, allocations: 8.875 kB / 341.3 MB, free: 3.82 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.623e-05/0.3888, allocations: 11.44 kB / 341.4 MB, free: 3.809 MB / 270.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3888, allocations: 0 / 341.4 MB, free: 3.809 MB / 270.1 MB Notification: Performance of Templates: time 0.01129/0.4001, allocations: 6.572 MB / 347.9 MB, free: 13.07 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1)