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.001869/0.001869, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003591/0.003591, allocations: 194.2 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.879/1.879, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001567/0.001568, allocations: 59.86 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3479, allocations: 46.63 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003578/0.3515, allocations: 1.554 MB / 326.9 MB, free: 0.6094 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002275/0.3538, allocations: 0.8938 MB / 327.8 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.293e-05/0.3539, allocations: 1.469 kB / 327.8 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.3541, allocations: 13.3 kB / 327.8 MB, free: 15.92 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.3542, allocations: 30.36 kB / 327.8 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.3545, allocations: 55.84 kB / 327.9 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.3548, allocations: 170.2 kB / 328 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.355, allocations: 29.45 kB / 328 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001119/0.3561, allocations: 0.6238 MB / 328.7 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002653/0.3564, allocations: 89.27 kB / 328.8 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.761e-05/0.3565, allocations: 10.25 kB / 328.8 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.029e-05/0.3566, allocations: 11.75 kB / 328.8 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.3567, allocations: 71.22 kB / 328.9 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002721/0.357, allocations: 131.1 kB / 329 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007939/0.3578, allocations: 454 kB / 329.4 MB, free: 14.96 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.357e-06/0.3579, allocations: 0 / 329.4 MB, free: 14.96 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.3579, allocations: 0 / 329.4 MB, free: 14.96 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.3579, allocations: 0 / 329.4 MB, free: 14.96 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.001975/0.3599, allocations: 0.819 MB / 330.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001034/0.36, allocations: 9.875 kB / 330.3 MB, free: 14.18 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002548/0.3603, allocations: 41.75 kB / 330.3 MB, free: 14.16 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000892/0.3612, allocations: 290.8 kB / 330.6 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.659e-05/0.3613, allocations: 5.969 kB / 330.6 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.767e-05/0.3614, allocations: 9.531 kB / 330.6 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.3624, allocations: 174 kB / 330.8 MB, free: 13.78 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.3624, allocations: 0 / 330.8 MB, free: 13.78 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.059e-05/0.3625, allocations: 3.531 kB / 330.8 MB, free: 13.78 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.3626, allocations: 5.375 kB / 330.8 MB, free: 13.78 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005476/0.3631, allocations: 88.3 kB / 330.9 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.3651, allocations: 0.5007 MB / 331.4 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000404/0.3655, allocations: 122.9 kB / 331.5 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003679/0.3659, allocations: 115 kB / 331.6 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.3659, allocations: 1.188 kB / 331.6 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009771/0.3669, allocations: 244.5 kB / 331.8 MB, free: 12.99 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 4.458e-06/0.3669, allocations: 0 / 331.8 MB, free: 12.99 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.00233/0.3693, allocations: 0.6125 MB / 332.4 MB, free: 12.53 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003697/0.3697, allocations: 195.9 kB / 332.6 MB, free: 12.3 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001336/0.371, allocations: 0.5641 MB / 333.2 MB, free: 11.73 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.266e-05/0.3711, allocations: 33.64 kB / 333.2 MB, free: 11.69 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.3713, allocations: 121 kB / 333.3 MB, free: 11.57 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.893e-05/0.3714, allocations: 23.72 kB / 333.4 MB, free: 11.54 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002738/0.3717, allocations: 93.41 kB / 333.5 MB, free: 11.45 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002462/0.3719, allocations: 338.8 kB / 333.8 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.3722, allocations: 75.97 kB / 333.9 MB, free: 11.03 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002768/0.3725, allocations: 113.5 kB / 334 MB, free: 10.91 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006675/0.3732, allocations: 426.7 kB / 334.4 MB, free: 10.43 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.3732, allocations: 0 / 334.4 MB, free: 10.43 MB / 270.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001145/0.3743, allocations: 0.5057 MB / 334.9 MB, free: 9.887 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000151/0.3745, allocations: 156.5 kB / 335.1 MB, free: 9.703 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.3745, allocations: 0 / 335.1 MB, free: 9.703 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.3746, allocations: 4 kB / 335.1 MB, free: 9.699 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.306e-05/0.3746, allocations: 0 / 335.1 MB, free: 9.699 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.3746, allocations: 0 / 335.1 MB, free: 9.699 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.3749, allocations: 23.92 kB / 335.1 MB, free: 9.676 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001838/0.3751, allocations: 97.31 kB / 335.2 MB, free: 9.578 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.0006342/0.3758, allocations: 416 kB / 335.6 MB, free: 9.129 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.3759, allocations: 43.53 kB / 335.6 MB, free: 9.086 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001763/0.3761, allocations: 71.47 kB / 335.7 MB, free: 9.012 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3761, allocations: 0 / 335.7 MB, free: 9.012 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/0.3761, allocations: 0 / 335.7 MB, free: 9.012 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3761, allocations: 0 / 335.7 MB, free: 9.012 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002177/0.3783, allocations: 0.9677 MB / 336.7 MB, free: 7.957 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3783, allocations: 0 / 336.7 MB, free: 7.957 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.131e-05/0.3784, allocations: 4 kB / 336.7 MB, free: 7.953 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.3784, allocations: 0 / 336.7 MB, free: 7.953 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.793e-05/0.3785, allocations: 23.98 kB / 336.7 MB, free: 7.93 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.3785, allocations: 0 / 336.7 MB, free: 7.93 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/0.3785, allocations: 3.938 kB / 336.7 MB, free: 7.926 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.3801, allocations: 0.6633 MB / 337.4 MB, free: 7.215 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005768/0.3807, allocations: 256.3 kB / 337.6 MB, free: 6.945 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.3808, allocations: 15.98 kB / 337.6 MB, free: 6.93 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.3811, allocations: 8 kB / 337.6 MB, free: 6.922 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002774/0.3814, allocations: 59.88 kB / 337.7 MB, free: 6.863 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001759/0.3815, allocations: 109.2 kB / 337.8 MB, free: 6.758 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0009541/0.3825, allocations: 418.8 kB / 338.2 MB, free: 6.348 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3825, allocations: 0 / 338.2 MB, free: 6.348 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005764/0.3831, allocations: 48 kB / 338.2 MB, free: 6.301 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.0002603/0.3834, allocations: 123.2 kB / 338.4 MB, free: 6.168 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009283/0.3843, allocations: 0.536 MB / 338.9 MB, free: 5.57 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.3843, allocations: 0 / 338.9 MB, free: 5.57 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000632/0.385, allocations: 465.1 kB / 339.4 MB, free: 5.055 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.3863, allocations: 177.7 kB / 339.5 MB, free: 4.883 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/0.3883, allocations: 0.7614 MB / 340.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007206/0.389, allocations: 0.8182 MB / 341.1 MB, free: 3.25 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001264/0.3892, allocations: 20.84 kB / 341.1 MB, free: 3.23 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.438e-05/0.3892, allocations: 11.44 kB / 341.1 MB, free: 3.219 MB / 270.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3892, allocations: 0 / 341.1 MB, free: 3.219 MB / 270.1 MB Notification: Performance of Templates: time 0.02223/0.4115, allocations: 7.443 MB / 348.6 MB, free: 11.61 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)