Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadModel(Modelica): time 1.826/1.826, allocations: 171.2 MB / 186.8 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006418/0.0006417, allocations: 11.94 kB / 233.2 MB, free: 3.02 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09343/0.09411, allocations: 38.78 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2875/0.3817, allocations: 72.33 MB / 344.3 MB, free: 1.574 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002397/0.382, allocations: 65.66 kB / 344.4 MB, free: 1.539 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0887/0.4707, allocations: 28.1 MB / 372.5 MB, free: 10.35 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.24e-06/0.4707, allocations: 0 / 372.5 MB, free: 10.35 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.158e-05/0.4708, allocations: 4 kB / 372.5 MB, free: 10.35 MB / 298.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.0009531/0.4717, allocations: 0.748 MB / 373.3 MB, free: 9.547 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.4718, allocations: 8.031 kB / 373.3 MB, free: 9.539 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.4719, allocations: 43.53 kB / 373.3 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004098/0.4723, allocations: 274.3 kB / 373.6 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.4724, allocations: 4 kB / 373.6 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.843e-05/0.4724, allocations: 15.06 kB / 373.6 MB, free: 9.184 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004509/0.4729, allocations: 171.5 kB / 373.8 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.607e-06/0.4729, allocations: 0 / 373.8 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/0.473, allocations: 4 kB / 373.8 MB, free: 9.031 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.268e-06/0.473, allocations: 4 kB / 373.8 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.4733, allocations: 84.33 kB / 373.9 MB, free: 8.965 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.4743, allocations: 0.507 MB / 374.4 MB, free: 8.477 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003004/0.4746, allocations: 118.1 kB / 374.5 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.4746, allocations: 2.312 kB / 374.5 MB, free: 8.383 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000495/0.4751, allocations: 238.3 kB / 374.7 MB, free: 8.152 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 3.725e-06/0.4752, allocations: 0 / 374.7 MB, free: 8.152 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.001454/0.4766, allocations: 0.7426 MB / 375.5 MB, free: 7.422 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/0.4768, allocations: 207.3 kB / 375.7 MB, free: 7.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009315/0.4777, allocations: 0.4976 MB / 376.2 MB, free: 6.762 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.997e-05/0.4778, allocations: 29.7 kB / 376.2 MB, free: 6.727 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.4779, allocations: 172.3 kB / 376.4 MB, free: 6.574 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.239e-05/0.478, allocations: 31.08 kB / 376.4 MB, free: 6.547 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.119e-05/0.4781, allocations: 7.5 kB / 376.4 MB, free: 6.543 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.4783, allocations: 318.8 kB / 376.7 MB, free: 6.223 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002415/0.4785, allocations: 80.33 kB / 376.8 MB, free: 6.164 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002407/0.4788, allocations: 101 kB / 376.9 MB, free: 6.082 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.4791, allocations: 213.9 kB / 377.1 MB, free: 5.871 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.514e-06/0.4791, allocations: 0 / 377.1 MB, free: 5.871 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0009796/0.4801, allocations: 481.4 kB / 377.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.4803, allocations: 147.7 kB / 377.7 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.062e-06/0.4803, allocations: 0 / 377.7 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.4803, allocations: 4.062 kB / 377.7 MB, free: 5.254 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.539e-05/0.4803, allocations: 7.984 kB / 377.7 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.448e-06/0.4804, allocations: 0 / 377.7 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.4806, allocations: 23.61 kB / 377.7 MB, free: 5.227 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/0.4808, allocations: 97.23 kB / 377.8 MB, free: 5.129 MB / 298.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.0005991/0.4814, allocations: 398.2 kB / 378.2 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.4815, allocations: 51.41 kB / 378.3 MB, free: 4.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001733/0.4817, allocations: 70.47 kB / 378.3 MB, free: 4.613 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.4817, allocations: 0 / 378.3 MB, free: 4.613 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.405e-06/0.4817, allocations: 0 / 378.3 MB, free: 4.613 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.909e-06/0.4818, allocations: 4 kB / 378.3 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/0.4834, allocations: 0.9459 MB / 379.3 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.413e-06/0.4835, allocations: 0 / 379.3 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.017e-05/0.4835, allocations: 0 / 379.3 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.555e-06/0.4835, allocations: 0 / 379.3 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.449e-05/0.4836, allocations: 23.11 kB / 379.3 MB, free: 3.688 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.046e-06/0.4836, allocations: 0 / 379.3 MB, free: 3.688 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.486e-06/0.4836, allocations: 0 / 379.3 MB, free: 3.688 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.4848, allocations: 0.644 MB / 380 MB, free: 3.078 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005128/0.4853, allocations: 257.7 kB / 380.2 MB, free: 2.848 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.207e-05/0.4854, allocations: 11.44 kB / 380.2 MB, free: 2.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.4857, allocations: 15.44 kB / 380.2 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.4859, allocations: 54.55 kB / 380.3 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001704/0.486, allocations: 101.2 kB / 380.4 MB, free: 2.688 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007576/0.4868, allocations: 424.7 kB / 380.8 MB, free: 2.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.4e-07/0.4868, allocations: 0 / 380.8 MB, free: 2.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004619/0.4873, allocations: 52 kB / 380.9 MB, free: 2.289 MB / 298.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.0001919/0.4875, allocations: 126.1 kB / 381 MB, free: 2.164 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008627/0.4884, allocations: 0.5335 MB / 381.5 MB, free: 1.668 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.027e-06/0.4884, allocations: 0 / 381.5 MB, free: 1.668 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005476/0.489, allocations: 462.1 kB / 382 MB, free: 1.242 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008207/0.4898, allocations: 154.4 kB / 382.1 MB, free: 1.117 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/0.4917, allocations: 0.8896 MB / 383 MB, free: 272 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006889/0.4924, allocations: 0.826 MB / 383.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.957e-05/0.4925, allocations: 11.44 kB / 383.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of SimCode: time 1.915e-06/0.4925, allocations: 0 / 383.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of Templates: time 0.008321/0.5008, allocations: 4.213 MB / 388.1 MB, free: 11.12 MB / 314.7 MB