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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.537/1.537, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.656e-05/2.667e-05, allocations: 4 kB / 222.5 MB, free: 8.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06859/0.06865, allocations: 38.76 MB / 261.3 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4174/0.4861, allocations: 71.59 MB / 332.9 MB, free: 0.625 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002185/0.4864, allocations: 71.95 kB / 332.9 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1043/0.5907, allocations: 28.1 MB / 361 MB, free: 8.184 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.788e-06/0.5908, allocations: 0 / 361 MB, free: 8.184 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.447e-05/0.5908, allocations: 4 kB / 361 MB, free: 8.18 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.0007863/0.5916, allocations: 0.6776 MB / 361.7 MB, free: 7.426 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.5917, allocations: 12.03 kB / 361.7 MB, free: 7.414 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.977e-05/0.5918, allocations: 43.44 kB / 361.8 MB, free: 7.371 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003993/0.5922, allocations: 275.5 kB / 362 MB, free: 7.059 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.5922, allocations: 4 kB / 362 MB, free: 7.055 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.698e-05/0.5923, allocations: 8 kB / 362.1 MB, free: 7.047 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000212/0.5925, allocations: 71.98 kB / 362.1 MB, free: 6.977 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003451/0.5929, allocations: 157.6 kB / 362.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.5929, allocations: 3.938 kB / 362.3 MB, free: 6.812 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.628e-05/0.5929, allocations: 15.88 kB / 362.3 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.276e-06/0.593, allocations: 0 / 362.3 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009008/0.5939, allocations: 473 kB / 362.8 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002386/0.5941, allocations: 118.5 kB / 362.9 MB, free: 6.172 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.5943, allocations: 108.9 kB / 363 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.5944, allocations: 0 / 363 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003872/0.5948, allocations: 238.7 kB / 363.2 MB, free: 5.805 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.598e-06/0.5948, allocations: 0 / 363.2 MB, free: 5.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000851/0.5956, allocations: 349 kB / 363.6 MB, free: 5.457 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.5958, allocations: 195.9 kB / 363.7 MB, free: 5.223 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008289/0.5966, allocations: 488.9 kB / 364.2 MB, free: 4.734 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.689e-05/0.5967, allocations: 29.7 kB / 364.3 MB, free: 4.699 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.5968, allocations: 175.8 kB / 364.4 MB, free: 4.527 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.19e-05/0.5969, allocations: 31.75 kB / 364.5 MB, free: 4.496 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/0.597, allocations: 4 kB / 364.5 MB, free: 4.492 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.5971, allocations: 318.8 kB / 364.8 MB, free: 4.172 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.5973, allocations: 79.91 kB / 364.8 MB, free: 4.094 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.5975, allocations: 79.97 kB / 364.9 MB, free: 4.016 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/0.5977, allocations: 56.11 kB / 365 MB, free: 3.961 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.98e-06/0.5977, allocations: 4 kB / 365 MB, free: 3.957 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007391/0.5984, allocations: 325.3 kB / 365.3 MB, free: 3.633 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001336/0.5986, allocations: 152.5 kB / 365.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.107e-06/0.5986, allocations: 0 / 365.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.5986, allocations: 0 / 365.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.181e-05/0.5987, allocations: 8.062 kB / 365.5 MB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.406e-06/0.5987, allocations: 0 / 365.5 MB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.5989, allocations: 19.89 kB / 365.5 MB, free: 3.426 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/0.5991, allocations: 101.5 kB / 365.6 MB, free: 3.324 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,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 () * 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.0002748/0.5993, allocations: 271.2 kB / 365.8 MB, free: 3.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.459e-05/0.5994, allocations: 43.53 kB / 365.9 MB, free: 2.977 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000176/0.5996, allocations: 75.58 kB / 366 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.718e-06/0.5997, allocations: 0 / 366 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.715e-06/0.5997, allocations: 0 / 366 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.664e-06/0.5997, allocations: 0 / 366 MB, free: 2.902 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.6011, allocations: 0.7408 MB / 366.7 MB, free: 2.117 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.4e-06/0.6011, allocations: 0 / 366.7 MB, free: 2.117 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.453e-06/0.6011, allocations: 0 / 366.7 MB, free: 2.117 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.262e-06/0.6011, allocations: 4 kB / 366.7 MB, free: 2.113 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.213e-05/0.6012, allocations: 19.98 kB / 366.7 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.511e-06/0.6012, allocations: 0 / 366.7 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6012, allocations: 0 / 366.7 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009059/0.6021, allocations: 494.8 kB / 367.2 MB, free: 1.594 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004734/0.6026, allocations: 260.3 kB / 367.5 MB, free: 1.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.66e-05/0.6027, allocations: 15.94 kB / 367.5 MB, free: 1.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002474/0.603, allocations: 19.98 kB / 367.5 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.6032, allocations: 59.91 kB / 367.6 MB, free: 1.227 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/0.6034, allocations: 93.31 kB / 367.6 MB, free: 1.137 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006753/0.6041, allocations: 402.6 kB / 368 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.02e-07/0.6041, allocations: 0 / 368 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004374/0.6045, allocations: 48 kB / 368.1 MB, free: 0.6992 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) * 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.000199/0.6047, allocations: 123.3 kB / 368.2 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007519/0.6055, allocations: 0.5127 MB / 368.7 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.6055, allocations: 0 / 368.7 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000509/0.6061, allocations: 460.9 kB / 369.2 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008223/0.6069, allocations: 162.8 kB / 369.3 MB, free: 15.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.6084, allocations: 0.6456 MB / 370 MB, free: 14.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007096/0.6091, allocations: 0.83 MB / 370.8 MB, free: 13.79 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.629e-05/0.6091, allocations: 11.44 kB / 370.8 MB, free: 13.78 MB / 314.7 MB Notification: Performance of SimCode: time 1.526e-06/0.6092, allocations: 0 / 370.8 MB, free: 13.78 MB / 314.7 MB Notification: Performance of Templates: time 0.008125/0.6173, allocations: 4.192 MB / 375 MB, free: 9.48 MB / 314.7 MB