Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadModel(Modelica): time 2.175/2.175, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007589/0.000759, allocations: 16 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1569, allocations: 44.5 MB / 309 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4614/0.6184, allocations: 77.65 MB / 386.7 MB, free: 15.38 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/0.6187, allocations: 69.84 kB / 386.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08533/0.7041, allocations: 27.62 MB / 414.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.7041, allocations: 3.938 kB / 414.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.7042, allocations: 11.84 kB / 414.4 MB, free: 10.02 MB / 314.7 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.0007825/0.7049, allocations: 0.7383 MB / 415.1 MB, free: 9.309 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.705, allocations: 7.781 kB / 415.1 MB, free: 9.309 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.7051, allocations: 46.77 kB / 415.2 MB, free: 9.281 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.7055, allocations: 278.5 kB / 415.5 MB, free: 9.031 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.7055, allocations: 11.5 kB / 415.5 MB, free: 9.031 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.342e-05/0.7056, allocations: 7.75 kB / 415.5 MB, free: 9.031 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004389/0.706, allocations: 167.8 kB / 415.6 MB, free: 8.961 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.7061, allocations: 4 kB / 415.6 MB, free: 8.957 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.138e-05/0.7061, allocations: 7.594 kB / 415.7 MB, free: 8.957 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.7061, allocations: 0 / 415.7 MB, free: 8.957 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002562/0.7064, allocations: 92.16 kB / 415.7 MB, free: 8.938 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009086/0.7073, allocations: 0.4905 MB / 416.2 MB, free: 8.586 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003384/0.7077, allocations: 126.2 kB / 416.4 MB, free: 8.543 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.7077, allocations: 0 / 416.4 MB, free: 8.543 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004124/0.7081, allocations: 244.6 kB / 416.6 MB, free: 8.383 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.285e-06/0.7082, allocations: 0 / 416.6 MB, free: 8.383 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.001387/0.7096, allocations: 0.7697 MB / 417.4 MB, free: 7.926 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.446e-05/0.7097, allocations: 194.5 kB / 417.6 MB, free: 7.703 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009477/0.7106, allocations: 0.5676 MB / 418.1 MB, free: 7.418 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.776e-05/0.7107, allocations: 33.48 kB / 418.2 MB, free: 7.387 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.602e-05/0.7108, allocations: 111.1 kB / 418.3 MB, free: 7.301 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.937e-05/0.7108, allocations: 30.7 kB / 418.3 MB, free: 7.281 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.202e-05/0.7109, allocations: 7.875 kB / 418.3 MB, free: 7.277 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.474e-05/0.711, allocations: 332.4 kB / 418.6 MB, free: 6.961 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000236/0.7112, allocations: 75.17 kB / 418.7 MB, free: 6.949 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.7115, allocations: 99.17 kB / 418.8 MB, free: 6.922 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.7118, allocations: 213.2 kB / 419 MB, free: 6.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.7118, allocations: 112 / 419 MB, free: 6.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0009399/0.7128, allocations: 0.5121 MB / 419.5 MB, free: 6.504 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.229e-05/0.7129, allocations: 149.4 kB / 419.7 MB, free: 6.344 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.7129, allocations: 3.953 kB / 419.7 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.7129, allocations: 7.812 kB / 419.7 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.095e-05/0.7129, allocations: 0 / 419.7 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.713, allocations: 0 / 419.7 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.7132, allocations: 19.52 kB / 419.7 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.7134, allocations: 98.7 kB / 419.8 MB, free: 6.32 MB / 314.7 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.sel,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,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.0004847/0.7139, allocations: 396.2 kB / 420.2 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.283e-05/0.7139, allocations: 45.88 kB / 420.2 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.7141, allocations: 66.91 kB / 420.3 MB, free: 5.941 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.7141, allocations: 11.86 kB / 420.3 MB, free: 5.934 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.7141, allocations: 0 / 420.3 MB, free: 5.934 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.7141, allocations: 0 / 420.3 MB, free: 5.934 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.7156, allocations: 0.9617 MB / 421.3 MB, free: 5.332 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.7157, allocations: 3.875 kB / 421.3 MB, free: 5.332 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.898e-06/0.7157, allocations: 0 / 421.3 MB, free: 5.332 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.7157, allocations: 3.953 kB / 421.3 MB, free: 5.328 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.898e-05/0.7157, allocations: 22.73 kB / 421.3 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.7158, allocations: 0 / 421.3 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.7158, allocations: 0 / 421.3 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.7168, allocations: 0.6628 MB / 422 MB, free: 4.965 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004927/0.7173, allocations: 263 kB / 422.2 MB, free: 4.785 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.7175, allocations: 14.58 kB / 422.2 MB, free: 4.781 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.7178, allocations: 18.98 kB / 422.2 MB, free: 4.777 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.718, allocations: 48.31 kB / 422.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/0.7181, allocations: 108.8 kB / 422.4 MB, free: 4.746 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006992/0.7188, allocations: 421.2 kB / 422.8 MB, free: 4.547 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7188, allocations: 0 / 422.8 MB, free: 4.547 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004361/0.7193, allocations: 49.75 kB / 422.9 MB, free: 4.547 MB / 314.7 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.sel,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,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,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.0002058/0.7195, allocations: 120.5 kB / 423 MB, free: 4.453 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007637/0.7203, allocations: 0.5315 MB / 423.5 MB, free: 4.105 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.7203, allocations: 3.875 kB / 423.5 MB, free: 4.105 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000457/0.7208, allocations: 463.9 kB / 424 MB, free: 3.773 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.7218, allocations: 148.4 kB / 424.1 MB, free: 3.723 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.7235, allocations: 0.8416 MB / 425 MB, free: 3.238 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004058/0.7239, allocations: 0.8268 MB / 425.8 MB, free: 2.461 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.901e-05/0.724, allocations: 15.91 kB / 425.8 MB, free: 2.453 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.268e-05/0.7241, allocations: 15.25 kB / 425.8 MB, free: 2.441 MB / 314.7 MB Notification: Performance of SimCode: time 9.42e-07/0.7241, allocations: 0 / 425.8 MB, free: 2.441 MB / 314.7 MB Notification: Performance of Templates: time 0.01434/0.7384, allocations: 6.591 MB / 432.4 MB, free: 15.04 MB / 330.7 MB