Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001049/0.001049, allocations: 97.33 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.008394/0.008394, allocations: 172.2 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.169/2.169, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0006254/0.0006253, allocations: 16 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.4079, allocations: 47.58 MB / 327 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001842/0.4098, allocations: 1.27 MB / 328.3 MB, free: 380 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.412, allocations: 0.9273 MB / 329.2 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.644e-05/0.4121, allocations: 5.031 kB / 329.2 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.4122, allocations: 10.17 kB / 329.2 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.934e-05/0.4123, allocations: 9.344 kB / 329.2 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.4126, allocations: 56.88 kB / 329.3 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.4128, allocations: 131.2 kB / 329.4 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.4129, allocations: 19.44 kB / 329.4 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009465/0.4139, allocations: 0.6252 MB / 330.1 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.414, allocations: 87.55 kB / 330.2 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.403e-05/0.4141, allocations: 4.375 kB / 330.2 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.496e-05/0.4141, allocations: 4.344 kB / 330.2 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.4143, allocations: 82.94 kB / 330.2 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.4145, allocations: 150.7 kB / 330.4 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005064/0.415, allocations: 446.7 kB / 330.8 MB, free: 14.74 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.415, allocations: 4 kB / 330.8 MB, free: 14.74 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.415, allocations: 0 / 330.8 MB, free: 14.74 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.415, allocations: 1.094 kB / 330.8 MB, free: 14.74 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.0008196/0.4158, allocations: 0.7249 MB / 331.6 MB, free: 14.01 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.4159, allocations: 8.906 kB / 331.6 MB, free: 14.01 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.482e-05/0.416, allocations: 43.22 kB / 331.6 MB, free: 13.99 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.4163, allocations: 297.8 kB / 331.9 MB, free: 13.7 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.4164, allocations: 14.16 kB / 331.9 MB, free: 13.7 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.765e-05/0.4164, allocations: 13.19 kB / 331.9 MB, free: 13.69 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004392/0.4169, allocations: 170.3 kB / 332.1 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.4169, allocations: 0 / 332.1 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.4169, allocations: 2.719 kB / 332.1 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.4169, allocations: 2.094 kB / 332.1 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002/0.4171, allocations: 83.45 kB / 332.2 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008223/0.418, allocations: 0.5043 MB / 332.7 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.4182, allocations: 117.3 kB / 332.8 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002054/0.4185, allocations: 111.6 kB / 332.9 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.4185, allocations: 1.062 kB / 332.9 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004689/0.4189, allocations: 252.2 kB / 333.2 MB, free: 12.8 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 2.033e-06/0.419, allocations: 0 / 333.2 MB, free: 12.8 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.001181/0.4201, allocations: 0.6134 MB / 333.8 MB, free: 12.37 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.4203, allocations: 195.9 kB / 334 MB, free: 12.13 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007664/0.4211, allocations: 0.5639 MB / 334.5 MB, free: 11.56 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.662e-05/0.4211, allocations: 29.7 kB / 334.6 MB, free: 11.53 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.4212, allocations: 121.1 kB / 334.7 MB, free: 11.41 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.262e-05/0.4213, allocations: 27.7 kB / 334.7 MB, free: 11.38 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.357e-05/0.4214, allocations: 25.72 kB / 334.7 MB, free: 11.35 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.4215, allocations: 338.8 kB / 335.1 MB, free: 11.01 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.4217, allocations: 79.95 kB / 335.1 MB, free: 10.93 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.4219, allocations: 97.67 kB / 335.2 MB, free: 10.83 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004464/0.4223, allocations: 430.6 kB / 335.7 MB, free: 10.34 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4224, allocations: 0 / 335.7 MB, free: 10.34 MB / 270.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007655/0.4231, allocations: 0.502 MB / 336.2 MB, free: 9.801 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.4233, allocations: 160.5 kB / 336.3 MB, free: 9.613 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4233, allocations: 0 / 336.3 MB, free: 9.613 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.42e-05/0.4233, allocations: 4 kB / 336.3 MB, free: 9.609 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.943e-05/0.4234, allocations: 7.875 kB / 336.3 MB, free: 9.602 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.4234, allocations: 0 / 336.3 MB, free: 9.602 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.4236, allocations: 15.98 kB / 336.3 MB, free: 9.586 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.4238, allocations: 97.25 kB / 336.4 MB, free: 9.488 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.0004627/0.4242, allocations: 412.1 kB / 336.8 MB, free: 9.043 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.825e-05/0.4243, allocations: 43.53 kB / 336.9 MB, free: 9 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.4244, allocations: 79.44 kB / 337 MB, free: 8.918 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.4244, allocations: 0 / 337 MB, free: 8.918 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.4244, allocations: 4 kB / 337 MB, free: 8.914 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.4245, allocations: 0 / 337 MB, free: 8.914 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/0.4257, allocations: 0.9517 MB / 337.9 MB, free: 7.875 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.4257, allocations: 0 / 337.9 MB, free: 7.875 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.506e-06/0.4258, allocations: 3.984 kB / 337.9 MB, free: 7.871 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.4258, allocations: 0 / 337.9 MB, free: 7.871 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.031e-05/0.4258, allocations: 24 kB / 337.9 MB, free: 7.848 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.4258, allocations: 3.984 kB / 337.9 MB, free: 7.844 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4258, allocations: 3.938 kB / 337.9 MB, free: 7.84 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.4269, allocations: 0.6595 MB / 338.6 MB, free: 7.133 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003839/0.4273, allocations: 260.3 kB / 338.9 MB, free: 6.859 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.218e-05/0.4274, allocations: 11.98 kB / 338.9 MB, free: 6.848 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.4275, allocations: 12 kB / 338.9 MB, free: 6.836 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001947/0.4277, allocations: 67.86 kB / 338.9 MB, free: 6.77 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.4279, allocations: 105.1 kB / 339.1 MB, free: 6.668 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0005677/0.4284, allocations: 414.9 kB / 339.5 MB, free: 6.266 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4284, allocations: 0 / 339.5 MB, free: 6.266 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003253/0.4288, allocations: 52 kB / 339.5 MB, free: 6.215 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.0002055/0.429, allocations: 115.2 kB / 339.6 MB, free: 6.09 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000761/0.4298, allocations: 0.5282 MB / 340.1 MB, free: 5.5 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4298, allocations: 4.062 kB / 340.2 MB, free: 5.496 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004884/0.4303, allocations: 468.9 kB / 340.6 MB, free: 4.977 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009241/0.4312, allocations: 178 kB / 340.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.4327, allocations: 0.8725 MB / 341.7 MB, free: 3.906 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005715/0.4333, allocations: 0.8224 MB / 342.5 MB, free: 3.059 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.936e-05/0.4334, allocations: 8.875 kB / 342.5 MB, free: 3.047 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.555e-05/0.4335, allocations: 15.38 kB / 342.5 MB, free: 3.031 MB / 270.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4335, allocations: 0 / 342.5 MB, free: 3.031 MB / 270.1 MB Notification: Performance of Templates: time 0.01242/0.4459, allocations: 6.705 MB / 349.2 MB, free: 12.16 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1)