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.672/1.672, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.633e-05/2.656e-05, allocations: 7.938 kB / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2106, allocations: 38.77 MB / 267.6 MB, free: 9.309 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1123/0.3229, allocations: 72.25 MB / 339.8 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.3232, allocations: 63.97 kB / 339.9 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.355/0.6782, allocations: 28.3 MB / 368.2 MB, free: 78.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.177e-06/0.6782, allocations: 0 / 368.2 MB, free: 78.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.313e-05/0.6783, allocations: 8 kB / 368.2 MB, free: 78.04 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.0005251/0.6788, allocations: 0.6811 MB / 368.9 MB, free: 77.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.6789, allocations: 8.031 kB / 368.9 MB, free: 77.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.284e-05/0.679, allocations: 43.53 kB / 368.9 MB, free: 77.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002972/0.6793, allocations: 282.6 kB / 369.2 MB, free: 76.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.6793, allocations: 4 kB / 369.2 MB, free: 76.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.497e-05/0.6794, allocations: 16 kB / 369.2 MB, free: 76.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003296/0.6797, allocations: 157.6 kB / 369.4 MB, free: 76.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.887e-06/0.6797, allocations: 0 / 369.4 MB, free: 76.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.545e-05/0.6798, allocations: 4 kB / 369.4 MB, free: 76.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.828e-06/0.6798, allocations: 0 / 369.4 MB, free: 76.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.68, allocations: 87.81 kB / 369.5 MB, free: 76.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007609/0.6808, allocations: 0.4893 MB / 370 MB, free: 76.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.681, allocations: 122.4 kB / 370.1 MB, free: 76.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.6812, allocations: 104.9 kB / 370.2 MB, free: 75.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.304e-05/0.6812, allocations: 7.984 kB / 370.2 MB, free: 75.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003273/0.6816, allocations: 242.6 kB / 370.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.186e-05/0.6816, allocations: 0 / 370.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008161/0.6824, allocations: 0.5005 MB / 370.9 MB, free: 75.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.157e-05/0.6825, allocations: 203.9 kB / 371.1 MB, free: 74.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007073/0.6832, allocations: 494.8 kB / 371.6 MB, free: 74.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.6833, allocations: 33.7 kB / 371.7 MB, free: 74.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.974e-05/0.6833, allocations: 179.5 kB / 371.8 MB, free: 74.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.09e-05/0.6834, allocations: 31.55 kB / 371.9 MB, free: 74.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-05/0.6835, allocations: 4 kB / 371.9 MB, free: 74.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.17e-05/0.6835, allocations: 318.8 kB / 372.2 MB, free: 73.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.6837, allocations: 75.98 kB / 372.2 MB, free: 73.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.6839, allocations: 83.97 kB / 372.3 MB, free: 73.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.6841, allocations: 208.5 kB / 372.5 MB, free: 73.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.479e-06/0.6841, allocations: 0 / 372.5 MB, free: 73.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007292/0.6848, allocations: 473.7 kB / 373 MB, free: 72.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.639e-05/0.6849, allocations: 159.5 kB / 373.2 MB, free: 72.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.343e-06/0.6849, allocations: 0 / 373.2 MB, free: 72.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.685, allocations: 3.984 kB / 373.2 MB, free: 72.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.157e-05/0.685, allocations: 4 kB / 373.2 MB, free: 72.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.453e-06/0.685, allocations: 112 / 373.2 MB, free: 72.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.6853, allocations: 23.73 kB / 373.2 MB, free: 72.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/0.6854, allocations: 93.3 kB / 373.3 MB, free: 72.62 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.0001695/0.6856, allocations: 271 kB / 373.5 MB, free: 72.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.149e-05/0.6857, allocations: 47.53 kB / 373.6 MB, free: 72.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001644/0.6858, allocations: 75.69 kB / 373.7 MB, free: 72.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.815e-06/0.6859, allocations: 0 / 373.7 MB, free: 72.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.324e-06/0.6859, allocations: 4.062 kB / 373.7 MB, free: 72.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.474e-06/0.6859, allocations: 3.984 kB / 373.7 MB, free: 72.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.6871, allocations: 0.932 MB / 374.6 MB, free: 71.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.227e-06/0.6871, allocations: 3.984 kB / 374.6 MB, free: 71.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.821e-06/0.6871, allocations: 3.938 kB / 374.6 MB, free: 71.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.682e-06/0.6871, allocations: 0 / 374.6 MB, free: 71.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/0.6872, allocations: 19.98 kB / 374.6 MB, free: 71.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.6872, allocations: 4 kB / 374.6 MB, free: 71.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.142e-06/0.6872, allocations: 0 / 374.6 MB, free: 71.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008161/0.688, allocations: 0.6244 MB / 375.3 MB, free: 70.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003834/0.6885, allocations: 256.4 kB / 375.5 MB, free: 70.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.45e-05/0.6885, allocations: 12 kB / 375.5 MB, free: 70.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.6888, allocations: 15.98 kB / 375.5 MB, free: 70.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.689, allocations: 67.44 kB / 375.6 MB, free: 70.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.6891, allocations: 99.53 kB / 375.7 MB, free: 70.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005868/0.6897, allocations: 424.6 kB / 376.1 MB, free: 69.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.29e-07/0.6897, allocations: 0 / 376.1 MB, free: 69.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004236/0.6902, allocations: 48 kB / 376.2 MB, free: 69.57 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.0001468/0.6903, allocations: 119.2 kB / 376.3 MB, free: 69.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005908/0.6909, allocations: 0.5244 MB / 376.8 MB, free: 68.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.691, allocations: 0 / 376.8 MB, free: 68.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003524/0.6913, allocations: 464.8 kB / 377.3 MB, free: 68.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007384/0.6921, allocations: 154 kB / 377.4 MB, free: 68.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.6933, allocations: 0.6544 MB / 378.1 MB, free: 67.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004044/0.6937, allocations: 0.8266 MB / 378.9 MB, free: 66.65 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.279e-05/0.6938, allocations: 15.44 kB / 378.9 MB, free: 66.64 MB / 298.7 MB Notification: Performance of SimCode: time 1.763e-06/0.6938, allocations: 0 / 378.9 MB, free: 66.64 MB / 298.7 MB Notification: Performance of Templates: time 0.006487/0.7003, allocations: 4.207 MB / 383.1 MB, free: 62.34 MB / 298.7 MB