Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.755/1.755, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006103/0.0006107, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09295/0.0936, allocations: 44.5 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.331/0.4246, allocations: 77.65 MB / 386.1 MB, free: 18.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.4248, allocations: 70.09 kB / 386.2 MB, free: 18.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07416/0.499, allocations: 27.61 MB / 413.8 MB, free: 14.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.973e-06/0.4991, allocations: 0 / 413.8 MB, free: 14.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.4991, allocations: 3.875 kB / 413.8 MB, free: 14.23 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.0006264/0.4997, allocations: 0.7399 MB / 414.5 MB, free: 13.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.4998, allocations: 7.75 kB / 414.5 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.613e-05/0.4999, allocations: 50.48 kB / 414.6 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.5002, allocations: 280.6 kB / 414.8 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.5002, allocations: 3.844 kB / 414.9 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.5003, allocations: 11.41 kB / 414.9 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003769/0.5007, allocations: 167 kB / 415 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.833e-06/0.5007, allocations: 0 / 415 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.5007, allocations: 3.906 kB / 415 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.445e-06/0.5008, allocations: 3.875 kB / 415 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002179/0.501, allocations: 95.33 kB / 415.1 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007616/0.5018, allocations: 499.3 kB / 415.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002672/0.502, allocations: 127.3 kB / 415.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.5021, allocations: 0 / 415.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003661/0.5024, allocations: 247.4 kB / 416 MB, free: 12.6 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.588e-06/0.5025, allocations: 4 kB / 416 MB, free: 12.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.00121/0.5037, allocations: 0.7459 MB / 416.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.5038, allocations: 190.9 kB / 416.9 MB, free: 11.92 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007536/0.5045, allocations: 0.5002 MB / 417.4 MB, free: 11.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.172e-05/0.5046, allocations: 33.2 kB / 417.4 MB, free: 11.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.023e-05/0.5047, allocations: 165.6 kB / 417.6 MB, free: 11.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.54e-05/0.5047, allocations: 38.3 kB / 417.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/0.5048, allocations: 7.188 kB / 417.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.344e-05/0.5048, allocations: 322.1 kB / 418 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.5051, allocations: 76.27 kB / 418 MB, free: 11.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.5053, allocations: 96.36 kB / 418.1 MB, free: 11.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002389/0.5055, allocations: 216 kB / 418.3 MB, free: 10.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.886e-06/0.5056, allocations: 112 / 418.3 MB, free: 10.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008215/0.5064, allocations: 477.7 kB / 418.8 MB, free: 10.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.584e-05/0.5065, allocations: 154.8 kB / 419 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.94e-06/0.5065, allocations: 0 / 419 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.5065, allocations: 11.92 kB / 419 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.155e-05/0.5066, allocations: 3.906 kB / 419 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.5066, allocations: 0 / 419 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.5068, allocations: 19.64 kB / 419 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.5069, allocations: 94.55 kB / 419.1 MB, free: 10.53 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.0004113/0.5074, allocations: 394.6 kB / 419.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.966e-05/0.5075, allocations: 42.69 kB / 419.5 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.5076, allocations: 77.91 kB / 419.6 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.471e-06/0.5076, allocations: 7.891 kB / 419.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.711e-06/0.5076, allocations: 0 / 419.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.906e-06/0.5077, allocations: 0 / 419.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001327/0.509, allocations: 0.9328 MB / 420.5 MB, free: 9.551 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.478e-06/0.509, allocations: 128 / 420.5 MB, free: 9.551 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.04e-05/0.509, allocations: 7.906 kB / 420.5 MB, free: 9.547 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.092e-06/0.5091, allocations: 0 / 420.5 MB, free: 9.547 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.666e-05/0.5091, allocations: 26.53 kB / 420.6 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.082e-06/0.5091, allocations: 0 / 420.6 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.886e-06/0.5091, allocations: 4 kB / 420.6 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009507/0.5101, allocations: 0.6436 MB / 421.2 MB, free: 9.176 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000413/0.5105, allocations: 253.6 kB / 421.5 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.945e-05/0.5106, allocations: 11.44 kB / 421.5 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.5109, allocations: 19.44 kB / 421.5 MB, free: 8.992 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.5111, allocations: 57.42 kB / 421.6 MB, free: 8.973 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.5112, allocations: 106.1 kB / 421.7 MB, free: 8.957 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006313/0.5118, allocations: 421.9 kB / 422.1 MB, free: 8.754 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.5e-07/0.5119, allocations: 0 / 422.1 MB, free: 8.754 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000457/0.5123, allocations: 53.91 kB / 422.1 MB, free: 8.754 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.0001612/0.5125, allocations: 113.6 kB / 422.2 MB, free: 8.664 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006965/0.5132, allocations: 0.5389 MB / 422.8 MB, free: 8.312 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.5132, allocations: 0 / 422.8 MB, free: 8.312 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003887/0.5136, allocations: 459.2 kB / 423.2 MB, free: 7.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007566/0.5144, allocations: 157.9 kB / 423.4 MB, free: 7.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.5159, allocations: 0.8815 MB / 424.3 MB, free: 7.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003741/0.5163, allocations: 0.8383 MB / 425.1 MB, free: 6.629 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.165e-05/0.5163, allocations: 11.38 kB / 425.1 MB, free: 6.621 MB / 314.7 MB Notification: Performance of SimCode: time 1.568e-06/0.5164, allocations: 0 / 425.1 MB, free: 6.621 MB / 314.7 MB Notification: Performance of Templates: time 0.006587/0.523, allocations: 4.213 MB / 429.3 MB, free: 4.43 MB / 314.7 MB