Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadModel(Modelica): time 2.015/2.015, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.0003573, allocations: 8 kB / 233.8 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09196/0.09234, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3669/0.4593, allocations: 72.33 MB / 344.9 MB, free: 1.004 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.4596, allocations: 79.28 kB / 345 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1332/0.5929, allocations: 28.1 MB / 373.1 MB, free: 9.789 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.826e-06/0.5929, allocations: 0 / 373.1 MB, free: 9.789 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.014e-05/0.593, allocations: 4 kB / 373.1 MB, free: 9.785 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.001388/0.5944, allocations: 0.7467 MB / 373.9 MB, free: 8.984 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/0.5944, allocations: 12.03 kB / 373.9 MB, free: 8.973 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001688/0.5946, allocations: 43.52 kB / 373.9 MB, free: 8.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006101/0.5953, allocations: 277.9 kB / 374.2 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.167e-05/0.5953, allocations: 8 kB / 374.2 MB, free: 8.621 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.864e-05/0.5954, allocations: 10.69 kB / 374.2 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000724/0.5961, allocations: 166.7 kB / 374.4 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.5962, allocations: 0 / 374.4 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.656e-05/0.5963, allocations: 8 kB / 374.4 MB, free: 8.461 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.5963, allocations: 0 / 374.4 MB, free: 8.461 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003951/0.5967, allocations: 95.02 kB / 374.5 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.5982, allocations: 0.4918 MB / 375 MB, free: 7.914 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005127/0.5988, allocations: 131 kB / 375.1 MB, free: 7.812 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.5988, allocations: 0 / 375.1 MB, free: 7.812 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008239/0.5996, allocations: 240.3 kB / 375.3 MB, free: 7.578 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 3.747e-06/0.5997, allocations: 0 / 375.3 MB, free: 7.578 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.002452/0.6021, allocations: 0.7669 MB / 376.1 MB, free: 6.828 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002049/0.6024, allocations: 203.1 kB / 376.3 MB, free: 6.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001792/0.6042, allocations: 0.5677 MB / 376.9 MB, free: 6.109 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001153/0.6044, allocations: 33.7 kB / 376.9 MB, free: 6.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.6046, allocations: 119.4 kB / 377 MB, free: 5.973 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.625e-05/0.6047, allocations: 22.59 kB / 377 MB, free: 5.953 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.854e-05/0.6047, allocations: 3.75 kB / 377 MB, free: 5.953 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.605, allocations: 328.8 kB / 377.4 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004227/0.6054, allocations: 82.27 kB / 377.4 MB, free: 5.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004675/0.6059, allocations: 102.5 kB / 377.5 MB, free: 5.484 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005152/0.6064, allocations: 212.4 kB / 377.7 MB, free: 5.273 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.6064, allocations: 0 / 377.7 MB, free: 5.273 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001769/0.6082, allocations: 0.4975 MB / 378.2 MB, free: 4.805 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002059/0.6085, allocations: 150.4 kB / 378.4 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.6085, allocations: 4 kB / 378.4 MB, free: 4.629 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.612e-05/0.6086, allocations: 7.938 kB / 378.4 MB, free: 4.621 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.269e-05/0.6086, allocations: 0 / 378.4 MB, free: 4.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.6086, allocations: 0 / 378.4 MB, free: 4.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000424/0.6091, allocations: 26.97 kB / 378.4 MB, free: 4.598 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002535/0.6093, allocations: 101.3 kB / 378.5 MB, free: 4.496 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.0009914/0.6104, allocations: 398.5 kB / 378.9 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001823/0.6106, allocations: 39.53 kB / 379 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002859/0.6109, allocations: 70.22 kB / 379 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.6109, allocations: 0 / 379 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.6109, allocations: 0 / 379 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.6109, allocations: 4 kB / 379 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.6139, allocations: 0.9688 MB / 380 MB, free: 3.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.457e-06/0.614, allocations: 7.984 kB / 380 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.757e-05/0.614, allocations: 0 / 380 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-05/0.614, allocations: 0 / 380 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.6141, allocations: 23.42 kB / 380 MB, free: 3.047 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.6142, allocations: 0 / 380 MB, free: 3.047 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.275e-06/0.6142, allocations: 3.953 kB / 380 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001957/0.6162, allocations: 0.6509 MB / 380.7 MB, free: 2.426 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009554/0.6172, allocations: 261.2 kB / 380.9 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002072/0.6174, allocations: 19.31 kB / 381 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004371/0.6179, allocations: 19.92 kB / 381 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003119/0.6182, allocations: 56.88 kB / 381 MB, free: 2.117 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002441/0.6185, allocations: 109.2 kB / 381.1 MB, free: 2.012 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001344/0.6198, allocations: 421.5 kB / 381.5 MB, free: 1.668 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6199, allocations: 0 / 381.5 MB, free: 1.668 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007577/0.6206, allocations: 48 kB / 381.6 MB, free: 1.621 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.00027/0.6209, allocations: 126.6 kB / 381.7 MB, free: 1.488 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.6223, allocations: 0.5342 MB / 382.2 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.6223, allocations: 0 / 382.2 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008546/0.6232, allocations: 460 kB / 382.7 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001624/0.6248, allocations: 156.9 kB / 382.9 MB, free: 452 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002842/0.6277, allocations: 0.8376 MB / 383.7 MB, free: 15.63 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009405/0.6287, allocations: 0.833 MB / 384.5 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001956/0.6289, allocations: 12.48 kB / 384.5 MB, free: 14.78 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.014e-05/0.629, allocations: 11.44 kB / 384.5 MB, free: 14.77 MB / 314.7 MB Notification: Performance of SimCode: time 1.824e-06/0.629, allocations: 0 / 384.5 MB, free: 14.77 MB / 314.7 MB Notification: Performance of Templates: time 0.02807/0.6571, allocations: 6.582 MB / 391.1 MB, free: 8.051 MB / 314.7 MB