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.0008849/0.0008852, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.00606/0.00606, allocations: 172.7 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.154/2.154, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.000521/0.0005209, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3794/0.38, allocations: 47.59 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002183/0.3822, allocations: 1.271 MB / 328.3 MB, free: 400 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.3846, allocations: 0.9182 MB / 329.2 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.048e-05/0.3847, allocations: 1.062 kB / 329.2 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.3849, allocations: 10.33 kB / 329.2 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.385, allocations: 20.69 kB / 329.3 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003484/0.3853, allocations: 49.56 kB / 329.3 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002345/0.3856, allocations: 127 kB / 329.4 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.3858, allocations: 27.56 kB / 329.5 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001074/0.3869, allocations: 0.621 MB / 330.1 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001992/0.3871, allocations: 92.3 kB / 330.2 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.018e-05/0.3871, allocations: 4.562 kB / 330.2 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.437e-05/0.3872, allocations: 3.375 kB / 330.2 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.3873, allocations: 70.8 kB / 330.2 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.3876, allocations: 150.7 kB / 330.4 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005713/0.3881, allocations: 455.3 kB / 330.8 MB, free: 14.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3882, allocations: 0 / 330.8 MB, free: 14.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3882, allocations: 0 / 330.8 MB, free: 14.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.3882, allocations: 0 / 330.8 MB, free: 14.77 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.0009106/0.3891, allocations: 0.7297 MB / 331.6 MB, free: 14.04 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/0.3892, allocations: 8.344 kB / 331.6 MB, free: 14.04 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.3893, allocations: 42.84 kB / 331.6 MB, free: 14.02 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004108/0.3897, allocations: 295.5 kB / 331.9 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.555e-05/0.3897, allocations: 8.719 kB / 331.9 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.947e-05/0.3898, allocations: 13.84 kB / 331.9 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004716/0.3903, allocations: 173 kB / 332.1 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.3903, allocations: 0 / 332.1 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.695e-05/0.3903, allocations: 8.406 kB / 332.1 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.3904, allocations: 1.094 kB / 332.1 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002203/0.3906, allocations: 83.14 kB / 332.2 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008895/0.3915, allocations: 0.5048 MB / 332.7 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.3918, allocations: 125.5 kB / 332.8 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.392, allocations: 112.3 kB / 332.9 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.3921, allocations: 0 / 332.9 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004639/0.3925, allocations: 248.6 kB / 333.2 MB, free: 12.83 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.3925, allocations: 4 kB / 333.2 MB, free: 12.82 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.001229/0.3938, allocations: 0.6134 MB / 333.8 MB, free: 12.35 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/0.3939, allocations: 196 kB / 334 MB, free: 12.12 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007289/0.3947, allocations: 0.56 MB / 334.5 MB, free: 11.55 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/0.3947, allocations: 33.7 kB / 334.6 MB, free: 11.51 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.519e-05/0.3948, allocations: 117.1 kB / 334.7 MB, free: 11.39 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.87e-05/0.3949, allocations: 27.7 kB / 334.7 MB, free: 11.37 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.473e-05/0.3949, allocations: 25.7 kB / 334.7 MB, free: 11.34 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3951, allocations: 334.8 kB / 335.1 MB, free: 11 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.3952, allocations: 83.95 kB / 335.1 MB, free: 10.92 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.3954, allocations: 97.67 kB / 335.2 MB, free: 10.82 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004992/0.3959, allocations: 438.6 kB / 335.7 MB, free: 10.32 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3959, allocations: 0 / 335.7 MB, free: 10.32 MB / 270.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007224/0.3967, allocations: 0.5097 MB / 336.2 MB, free: 9.773 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.3968, allocations: 148.5 kB / 336.3 MB, free: 9.598 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.3968, allocations: 0 / 336.3 MB, free: 9.598 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.3968, allocations: 11.97 kB / 336.3 MB, free: 9.586 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.669e-05/0.3969, allocations: 0 / 336.3 MB, free: 9.586 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3969, allocations: 3.984 kB / 336.3 MB, free: 9.582 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.3971, allocations: 12 kB / 336.3 MB, free: 9.57 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.3972, allocations: 105.2 kB / 336.4 MB, free: 9.465 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,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004276/0.3977, allocations: 400 kB / 336.8 MB, free: 9.031 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.3977, allocations: 39.53 kB / 336.9 MB, free: 8.992 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000122/0.3979, allocations: 79.47 kB / 337 MB, free: 8.91 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.3979, allocations: 0 / 337 MB, free: 8.91 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3979, allocations: 0 / 337 MB, free: 8.91 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.3979, allocations: 4 kB / 337 MB, free: 8.906 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001279/0.3992, allocations: 0.9556 MB / 337.9 MB, free: 7.863 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3992, allocations: 0 / 337.9 MB, free: 7.863 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.86e-06/0.3992, allocations: 0 / 337.9 MB, free: 7.863 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.3992, allocations: 0 / 337.9 MB, free: 7.863 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.218e-05/0.3993, allocations: 19.98 kB / 337.9 MB, free: 7.844 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3993, allocations: 0 / 337.9 MB, free: 7.844 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3993, allocations: 11.88 kB / 337.9 MB, free: 7.832 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000866/0.4002, allocations: 0.6634 MB / 338.6 MB, free: 7.121 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000406/0.4006, allocations: 252.3 kB / 338.9 MB, free: 6.855 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.739e-05/0.4006, allocations: 12 kB / 338.9 MB, free: 6.844 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.4008, allocations: 15.98 kB / 338.9 MB, free: 6.828 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.401, allocations: 67.8 kB / 338.9 MB, free: 6.762 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.4011, allocations: 105.2 kB / 339 MB, free: 6.66 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0005148/0.4016, allocations: 422.8 kB / 339.5 MB, free: 6.25 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4016, allocations: 0 / 339.5 MB, free: 6.25 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.4019, allocations: 48 kB / 339.5 MB, free: 6.203 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000193/0.4021, allocations: 119.4 kB / 339.6 MB, free: 6.074 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006581/0.4028, allocations: 0.5321 MB / 340.2 MB, free: 5.48 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4028, allocations: 0 / 340.2 MB, free: 5.48 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004382/0.4033, allocations: 464.9 kB / 340.6 MB, free: 4.965 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009265/0.4042, allocations: 173.9 kB / 340.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.4058, allocations: 0.8803 MB / 341.7 MB, free: 3.891 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007304/0.4065, allocations: 0.8146 MB / 342.5 MB, free: 3.051 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.725e-05/0.4066, allocations: 12.88 kB / 342.5 MB, free: 3.035 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.672e-05/0.4067, allocations: 11.44 kB / 342.5 MB, free: 3.023 MB / 270.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4067, allocations: 3.938 kB / 342.5 MB, free: 3.02 MB / 270.1 MB Notification: Performance of Templates: time 0.01256/0.4192, allocations: 6.694 MB / 349.2 MB, free: 12.16 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)