Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadModel(Modelica): time 2.014/2.014, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003573, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0954/0.09578, allocations: 44.51 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4045/0.5003, allocations: 77.64 MB / 386.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.5006, allocations: 73.61 kB / 386.7 MB, free: 14.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08528/0.5859, allocations: 27.6 MB / 414.3 MB, free: 9.895 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.586, allocations: 4 kB / 414.3 MB, free: 9.891 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.586, allocations: 7.781 kB / 414.3 MB, free: 9.891 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.0007533/0.5868, allocations: 0.7502 MB / 415 MB, free: 9.172 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.5868, allocations: 7.719 kB / 415.1 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.5869, allocations: 46.83 kB / 415.1 MB, free: 9.145 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003435/0.5873, allocations: 272.9 kB / 415.4 MB, free: 8.902 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.5873, allocations: 7.812 kB / 415.4 MB, free: 8.898 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.895e-05/0.5874, allocations: 14.72 kB / 415.4 MB, free: 8.898 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004427/0.5879, allocations: 163.8 kB / 415.6 MB, free: 8.828 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.5879, allocations: 4 kB / 415.6 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.914e-05/0.5879, allocations: 3.75 kB / 415.6 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.5879, allocations: 3.75 kB / 415.6 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002538/0.5882, allocations: 86 kB / 415.6 MB, free: 8.809 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008905/0.5891, allocations: 0.4941 MB / 416.1 MB, free: 8.449 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.5894, allocations: 128.7 kB / 416.3 MB, free: 8.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.23e-05/0.5894, allocations: 0 / 416.3 MB, free: 8.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004279/0.5899, allocations: 247.6 kB / 416.5 MB, free: 8.246 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 1.964e-06/0.5899, allocations: 0 / 416.5 MB, free: 8.246 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.001394/0.5913, allocations: 0.7689 MB / 417.3 MB, free: 7.789 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.5914, allocations: 187.7 kB / 417.5 MB, free: 7.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009417/0.5924, allocations: 0.5719 MB / 418 MB, free: 7.285 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.308e-05/0.5924, allocations: 29.64 kB / 418.1 MB, free: 7.254 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.318e-05/0.5925, allocations: 176.9 kB / 418.2 MB, free: 7.102 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.923e-05/0.5926, allocations: 30.5 kB / 418.3 MB, free: 7.086 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.123e-05/0.5926, allocations: 7.688 kB / 418.3 MB, free: 7.082 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.18e-05/0.5927, allocations: 322.1 kB / 418.6 MB, free: 6.766 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002339/0.5929, allocations: 77.55 kB / 418.7 MB, free: 6.754 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002445/0.5932, allocations: 104.8 kB / 418.8 MB, free: 6.723 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.5935, allocations: 213.3 kB / 419 MB, free: 6.551 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.5935, allocations: 0 / 419 MB, free: 6.551 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0009068/0.5944, allocations: 0.4899 MB / 419.5 MB, free: 6.316 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.64e-05/0.5945, allocations: 154.6 kB / 419.6 MB, free: 6.152 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.5945, allocations: 3.953 kB / 419.6 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.5945, allocations: 3.875 kB / 419.6 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.25e-05/0.5946, allocations: 0 / 419.6 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.5946, allocations: 0 / 419.6 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.5949, allocations: 35.3 kB / 419.7 MB, free: 6.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.595, allocations: 89.66 kB / 419.7 MB, free: 6.129 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.0004765/0.5955, allocations: 399.8 kB / 420.1 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.803e-05/0.5956, allocations: 46.44 kB / 420.2 MB, free: 5.781 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000137/0.5957, allocations: 65.36 kB / 420.2 MB, free: 5.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.5958, allocations: 3.953 kB / 420.2 MB, free: 5.746 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.5958, allocations: 8.047 kB / 420.3 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.5958, allocations: 0 / 420.3 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.5972, allocations: 0.9585 MB / 421.2 MB, free: 5.148 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.5972, allocations: 0 / 421.2 MB, free: 5.148 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.357e-06/0.5973, allocations: 0 / 421.2 MB, free: 5.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.5973, allocations: 3.953 kB / 421.2 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.723e-05/0.5973, allocations: 19.52 kB / 421.2 MB, free: 5.141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.5973, allocations: 3.984 kB / 421.2 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5973, allocations: 0 / 421.2 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.5984, allocations: 0.6692 MB / 421.9 MB, free: 4.773 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005002/0.5989, allocations: 258.8 kB / 422.2 MB, free: 4.594 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.599, allocations: 14.64 kB / 422.2 MB, free: 4.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002716/0.5993, allocations: 17.23 kB / 422.2 MB, free: 4.586 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/0.5995, allocations: 57.42 kB / 422.2 MB, free: 4.566 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/0.5997, allocations: 104.5 kB / 422.3 MB, free: 4.551 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007016/0.6004, allocations: 429.3 kB / 422.8 MB, free: 4.348 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6004, allocations: 0 / 422.8 MB, free: 4.348 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004295/0.6008, allocations: 46.59 kB / 422.8 MB, free: 4.348 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.0001616/0.601, allocations: 118.3 kB / 422.9 MB, free: 4.258 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007833/0.6018, allocations: 0.5339 MB / 423.5 MB, free: 3.91 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.6018, allocations: 0 / 423.5 MB, free: 3.91 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004601/0.6023, allocations: 466.7 kB / 423.9 MB, free: 3.574 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.6035, allocations: 158.8 kB / 424.1 MB, free: 3.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.6052, allocations: 0.8868 MB / 425 MB, free: 2.996 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.6056, allocations: 0.8242 MB / 425.8 MB, free: 2.223 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.572e-05/0.6057, allocations: 11.28 kB / 425.8 MB, free: 2.215 MB / 314.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6057, allocations: 0 / 425.8 MB, free: 2.215 MB / 314.7 MB Notification: Performance of Templates: time 0.008358/0.6141, allocations: 4.203 MB / 430 MB, free: 28 kB / 314.7 MB