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.0009777/0.0009779, 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.0012/0.001201, 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.888/1.888, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.0004749/0.0004751, allocations: 10.81 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3134, allocations: 47.6 MB / 326.5 MB, free: 1.496 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001803/0.3152, allocations: 1.232 MB / 327.7 MB, free: 0.5156 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.3171, allocations: 0.8612 MB / 328.6 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.726e-05/0.3171, allocations: 1.156 kB / 328.6 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.97e-05/0.3172, allocations: 9.453 kB / 328.6 MB, free: 15.87 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.915e-05/0.3173, allocations: 21.2 kB / 328.6 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003007/0.3176, allocations: 36.98 kB / 328.6 MB, free: 15.83 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.3179, allocations: 128 kB / 328.8 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.318, allocations: 18.62 kB / 328.8 MB, free: 15.74 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008232/0.3188, allocations: 0.5654 MB / 329.4 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.319, allocations: 104.7 kB / 329.5 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.3191, allocations: 4.438 kB / 329.5 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.064e-05/0.3191, allocations: 4.156 kB / 329.5 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.3192, allocations: 82.92 kB / 329.5 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.731e-05/0.3193, allocations: 74.36 kB / 329.6 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.3197, allocations: 360.7 kB / 330 MB, free: 15.11 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.3197, allocations: 0 / 330 MB, free: 15.11 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3197, allocations: 0.9375 kB / 330 MB, free: 15.11 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.3197, allocations: 0 / 330 MB, free: 15.11 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.0008062/0.3206, allocations: 0.7453 MB / 330.7 MB, free: 14.36 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.3206, allocations: 9.062 kB / 330.7 MB, free: 14.36 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.492e-05/0.3207, allocations: 40.81 kB / 330.8 MB, free: 14.34 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003715/0.3211, allocations: 278.9 kB / 331 MB, free: 14.07 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.3211, allocations: 9.656 kB / 331 MB, free: 14.07 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.958e-05/0.3212, allocations: 8.438 kB / 331.1 MB, free: 14.07 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004077/0.3216, allocations: 169.3 kB / 331.2 MB, free: 13.97 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.3216, allocations: 3.984 kB / 331.2 MB, free: 13.97 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.133e-05/0.3217, allocations: 4.562 kB / 331.2 MB, free: 13.97 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.3217, allocations: 0.9688 kB / 331.2 MB, free: 13.97 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.3219, allocations: 86.61 kB / 331.3 MB, free: 13.93 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008029/0.3227, allocations: 0.4989 MB / 331.8 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002835/0.323, allocations: 125.5 kB / 331.9 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/0.3232, allocations: 111.5 kB / 332 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.3232, allocations: 0 / 332 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004219/0.3236, allocations: 244 kB / 332.3 MB, free: 13.18 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.3236, allocations: 5.344 kB / 332.3 MB, free: 13.18 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.001072/0.3247, allocations: 0.6099 MB / 332.9 MB, free: 12.83 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.3249, allocations: 199.4 kB / 333.1 MB, free: 12.6 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007663/0.3256, allocations: 0.5684 MB / 333.7 MB, free: 12.11 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.311e-05/0.3257, allocations: 29.7 kB / 333.7 MB, free: 12.07 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.548e-05/0.3258, allocations: 113.1 kB / 333.8 MB, free: 11.96 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.99e-05/0.3258, allocations: 31.61 kB / 333.8 MB, free: 11.93 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.153e-05/0.3259, allocations: 12 kB / 333.8 MB, free: 11.91 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.326, allocations: 322.8 kB / 334.2 MB, free: 11.59 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.3262, allocations: 83.95 kB / 334.2 MB, free: 11.51 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.3264, allocations: 97.61 kB / 334.3 MB, free: 11.41 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/0.3266, allocations: 208.5 kB / 334.5 MB, free: 11.17 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3266, allocations: 0 / 334.5 MB, free: 11.17 MB / 270.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000728/0.3273, allocations: 0.4981 MB / 335 MB, free: 10.64 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.3274, allocations: 160.5 kB / 335.2 MB, free: 10.45 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.3274, allocations: 0 / 335.2 MB, free: 10.45 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.3275, allocations: 4 kB / 335.2 MB, free: 10.45 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.148e-05/0.3275, allocations: 3.938 kB / 335.2 MB, free: 10.44 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.3275, allocations: 0 / 335.2 MB, free: 10.44 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/0.3277, allocations: 19.94 kB / 335.2 MB, free: 10.42 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.3278, allocations: 97.25 kB / 335.3 MB, free: 10.32 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.0003858/0.3282, allocations: 408 kB / 335.7 MB, free: 9.883 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.243e-05/0.3283, allocations: 43.53 kB / 335.8 MB, free: 9.84 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.3284, allocations: 71.47 kB / 335.8 MB, free: 9.766 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3284, allocations: 0 / 335.8 MB, free: 9.766 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.3284, allocations: 4 kB / 335.8 MB, free: 9.762 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.3284, allocations: 0 / 335.8 MB, free: 9.762 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.3296, allocations: 0.9673 MB / 336.8 MB, free: 8.707 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3296, allocations: 0 / 336.8 MB, free: 8.707 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.699e-06/0.3297, allocations: 0 / 336.8 MB, free: 8.707 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3297, allocations: 3.984 kB / 336.8 MB, free: 8.703 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-05/0.3297, allocations: 24 kB / 336.8 MB, free: 8.68 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3297, allocations: 0 / 336.8 MB, free: 8.68 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3297, allocations: 3.984 kB / 336.8 MB, free: 8.676 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000807/0.3305, allocations: 0.6517 MB / 337.5 MB, free: 7.977 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003405/0.3309, allocations: 252.4 kB / 337.7 MB, free: 7.711 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.932e-05/0.331, allocations: 15.98 kB / 337.7 MB, free: 7.695 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.3311, allocations: 15.94 kB / 337.8 MB, free: 7.68 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.3313, allocations: 63.92 kB / 337.8 MB, free: 7.617 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.3314, allocations: 105.2 kB / 337.9 MB, free: 7.516 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0005313/0.3319, allocations: 426.7 kB / 338.3 MB, free: 7.102 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.332, allocations: 0 / 338.3 MB, free: 7.102 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.3323, allocations: 55.91 kB / 338.4 MB, free: 7.047 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.0001585/0.3324, allocations: 119.2 kB / 338.5 MB, free: 6.918 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006612/0.3331, allocations: 0.5321 MB / 339 MB, free: 6.324 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.3331, allocations: 4.062 kB / 339 MB, free: 6.32 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004131/0.3335, allocations: 468.9 kB / 339.5 MB, free: 5.801 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007422/0.3343, allocations: 161.8 kB / 339.7 MB, free: 5.645 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.3356, allocations: 0.8377 MB / 340.5 MB, free: 4.781 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005212/0.3361, allocations: 0.8223 MB / 341.3 MB, free: 3.934 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.151e-05/0.3362, allocations: 12.86 kB / 341.3 MB, free: 3.918 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.312e-05/0.3362, allocations: 11.44 kB / 341.3 MB, free: 3.906 MB / 270.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3362, allocations: 0 / 341.3 MB, free: 3.906 MB / 270.1 MB Notification: Performance of Templates: time 0.0111/0.3474, allocations: 6.584 MB / 347.9 MB, free: 13.15 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)