Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.636/1.636, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004946/0.0004947, allocations: 12 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.08974, allocations: 38.75 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3906/0.4804, allocations: 72.32 MB / 344.9 MB, free: 1.598 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/0.4807, allocations: 75.41 kB / 344.9 MB, free: 1.559 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09895/0.5797, allocations: 28.11 MB / 373 MB, free: 10.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.5797, allocations: 0 / 373 MB, free: 10.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.697e-05/0.5798, allocations: 4 kB / 373 MB, free: 10.37 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.0009604/0.5807, allocations: 0.7432 MB / 373.8 MB, free: 9.566 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.5808, allocations: 12.03 kB / 373.8 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.5809, allocations: 39.53 kB / 373.8 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.5813, allocations: 279 kB / 374.1 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.5814, allocations: 8 kB / 374.1 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.684e-05/0.5815, allocations: 15.42 kB / 374.1 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004998/0.582, allocations: 166 kB / 374.3 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.582, allocations: 0 / 374.3 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.582, allocations: 11.5 kB / 374.3 MB, free: 9.043 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.5821, allocations: 0 / 374.3 MB, free: 9.043 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002802/0.5824, allocations: 91.31 kB / 374.4 MB, free: 8.973 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.5834, allocations: 0.4893 MB / 374.9 MB, free: 8.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003362/0.5838, allocations: 128.3 kB / 375 MB, free: 8.398 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.5838, allocations: 0 / 375 MB, free: 8.398 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004993/0.5843, allocations: 250.4 kB / 375.3 MB, free: 8.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.325e-06/0.5843, allocations: 0 / 375.3 MB, free: 8.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.001634/0.586, allocations: 0.7587 MB / 376 MB, free: 7.414 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/0.5861, allocations: 203.3 kB / 376.2 MB, free: 7.176 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/0.5873, allocations: 0.5666 MB / 376.8 MB, free: 6.695 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.5873, allocations: 37.33 kB / 376.8 MB, free: 6.656 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.5875, allocations: 174.2 kB / 377 MB, free: 6.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.852e-05/0.5875, allocations: 31.56 kB / 377 MB, free: 6.473 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.145e-05/0.5876, allocations: 2.875 kB / 377 MB, free: 6.473 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.5877, allocations: 314.8 kB / 377.3 MB, free: 6.156 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002655/0.588, allocations: 82.2 kB / 377.4 MB, free: 6.098 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002798/0.5883, allocations: 109.2 kB / 377.5 MB, free: 6.008 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003218/0.5886, allocations: 210.9 kB / 377.7 MB, free: 5.797 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.5886, allocations: 0 / 377.7 MB, free: 5.797 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001071/0.5897, allocations: 499.6 kB / 378.2 MB, free: 5.336 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.5899, allocations: 151.4 kB / 378.4 MB, free: 5.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.5899, allocations: 0 / 378.4 MB, free: 5.164 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.5899, allocations: 4 kB / 378.4 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.978e-05/0.59, allocations: 3.938 kB / 378.4 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.59, allocations: 4.047 kB / 378.4 MB, free: 5.152 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.5903, allocations: 19.95 kB / 378.4 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/0.5904, allocations: 105.2 kB / 378.5 MB, free: 5.031 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.0006002/0.591, allocations: 390.8 kB / 378.9 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.271e-05/0.5912, allocations: 43.44 kB / 378.9 MB, free: 4.594 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001747/0.5913, allocations: 74.09 kB / 379 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.5914, allocations: 0 / 379 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.5914, allocations: 0 / 379 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.5914, allocations: 4 kB / 379 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001731/0.5931, allocations: 0.97 MB / 380 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.5932, allocations: 4 kB / 380 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.988e-06/0.5932, allocations: 0 / 380 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.5932, allocations: 0 / 380 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.629e-05/0.5933, allocations: 23.55 kB / 380 MB, free: 3.582 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.5933, allocations: 0 / 380 MB, free: 3.582 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.5933, allocations: 3.953 kB / 380 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.5946, allocations: 0.6536 MB / 380.6 MB, free: 2.961 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005592/0.5951, allocations: 254.9 kB / 380.9 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.5953, allocations: 15.31 kB / 380.9 MB, free: 2.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002692/0.5956, allocations: 23.86 kB / 380.9 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/0.5958, allocations: 59.67 kB / 381 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/0.596, allocations: 108.2 kB / 381.1 MB, free: 2.551 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008277/0.5968, allocations: 420.3 kB / 381.5 MB, free: 2.207 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5968, allocations: 0 / 381.5 MB, free: 2.207 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004732/0.5973, allocations: 48 kB / 381.6 MB, free: 2.16 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.000201/0.5975, allocations: 126.6 kB / 381.7 MB, free: 2.027 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009607/0.5985, allocations: 0.5277 MB / 382.2 MB, free: 1.539 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.5985, allocations: 3.938 kB / 382.2 MB, free: 1.535 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005742/0.5991, allocations: 460.6 kB / 382.7 MB, free: 1.109 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.6003, allocations: 156.9 kB / 382.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/0.6023, allocations: 0.8873 MB / 383.7 MB, free: 136 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006207/0.603, allocations: 0.8314 MB / 384.5 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.358e-05/0.603, allocations: 11.44 kB / 384.5 MB, free: 15.28 MB / 314.7 MB Notification: Performance of SimCode: time 1.293e-06/0.6031, allocations: 0 / 384.5 MB, free: 15.28 MB / 314.7 MB Notification: Performance of Templates: time 0.009753/0.6128, allocations: 4.199 MB / 388.7 MB, free: 10.99 MB / 314.7 MB