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.829/1.829, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004092/0.0004098, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08092/0.08136, allocations: 44.52 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001945/0.08335, allocations: 1.223 MB / 309.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002223/0.0856, allocations: 0.8513 MB / 310.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.46e-05/0.08571, allocations: 8 kB / 310.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.886e-05/0.08579, allocations: 15.86 kB / 310.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.886e-05/0.0859, allocations: 19.91 kB / 310.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002393/0.08616, allocations: 35.89 kB / 310.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001493/0.08632, allocations: 83.84 kB / 310.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.672e-05/0.08643, allocations: 17.39 kB / 310.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006867/0.08714, allocations: 487.2 kB / 311.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.08733, allocations: 99.8 kB / 311.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.141e-05/0.08739, allocations: 4 kB / 311.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.316e-05/0.08745, allocations: 7.938 kB / 311.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.805e-05/0.08756, allocations: 71.75 kB / 311.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.949e-05/0.08767, allocations: 77.52 kB / 311.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004264/0.08811, allocations: 363.1 kB / 311.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.597e-06/0.08812, allocations: 0 / 311.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.977e-06/0.08814, allocations: 0 / 311.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.912e-06/0.08815, allocations: 0 / 311.7 MB, free: 13.66 MB / 266.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.0009241/0.08909, allocations: 0.7324 MB / 312.4 MB, free: 12.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.08914, allocations: 12.03 kB / 312.4 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.08927, allocations: 43.48 kB / 312.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003918/0.08968, allocations: 285.2 kB / 312.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/0.08972, allocations: 8 kB / 312.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.569e-05/0.08978, allocations: 8 kB / 312.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004579/0.09025, allocations: 165.5 kB / 312.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.905e-06/0.09028, allocations: 0 / 312.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.843e-05/0.09033, allocations: 8 kB / 312.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.09035, allocations: 4 kB / 312.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002558/0.09061, allocations: 83.95 kB / 313 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009872/0.09162, allocations: 0.5003 MB / 313.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003118/0.09195, allocations: 122.5 kB / 313.7 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.09198, allocations: 8 kB / 313.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005199/0.09251, allocations: 242.6 kB / 313.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 3.438e-06/0.09254, allocations: 0 / 313.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.001491/0.09404, allocations: 0.7653 MB / 314.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/0.09421, allocations: 191.9 kB / 314.8 MB, free: 10.17 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.09525, allocations: 0.5717 MB / 315.4 MB, free: 9.594 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.056e-05/0.09532, allocations: 29.7 kB / 315.4 MB, free: 9.559 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.09547, allocations: 183.5 kB / 315.6 MB, free: 9.379 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.612e-05/0.09555, allocations: 31.61 kB / 315.7 MB, free: 9.348 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.09559, allocations: 4 kB / 315.7 MB, free: 9.344 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.09577, allocations: 318.8 kB / 316 MB, free: 9.023 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.09603, allocations: 83.89 kB / 316.1 MB, free: 8.941 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002636/0.0963, allocations: 97.67 kB / 316.2 MB, free: 8.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003205/0.09664, allocations: 208.3 kB / 316.4 MB, free: 8.605 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.212e-06/0.09666, allocations: 4 kB / 316.4 MB, free: 8.602 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0009986/0.09767, allocations: 0.4903 MB / 316.9 MB, free: 8.074 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001405/0.09783, allocations: 156.5 kB / 317 MB, free: 7.891 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.771e-06/0.09785, allocations: 0 / 317 MB, free: 7.891 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.09788, allocations: 7.953 kB / 317 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.135e-05/0.09791, allocations: 0 / 317 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.35e-06/0.09793, allocations: 0 / 317 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.09819, allocations: 19.89 kB / 317 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/0.09836, allocations: 101.3 kB / 317.1 MB, free: 7.766 MB / 266.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.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,Select.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.0005558/0.09893, allocations: 412.1 kB / 317.5 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.907e-05/0.09903, allocations: 39.53 kB / 317.6 MB, free: 7.281 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001595/0.09921, allocations: 67.48 kB / 317.6 MB, free: 7.211 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.09923, allocations: 4 kB / 317.6 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.09925, allocations: 7.938 kB / 317.6 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/0.09926, allocations: 0 / 317.6 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001685/0.101, allocations: 0.96 MB / 318.6 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.832e-06/0.101, allocations: 0 / 318.6 MB, free: 6.152 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.136e-05/0.101, allocations: 4 kB / 318.6 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/0.101, allocations: 0 / 318.6 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.712e-05/0.1011, allocations: 31.88 kB / 318.6 MB, free: 6.117 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.1011, allocations: 0 / 318.6 MB, free: 6.117 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1011, allocations: 0 / 318.6 MB, free: 6.117 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.1023, allocations: 0.6518 MB / 319.3 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004891/0.1029, allocations: 256.3 kB / 319.5 MB, free: 5.148 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.419e-05/0.103, allocations: 12 kB / 319.6 MB, free: 5.137 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.1032, allocations: 23.94 kB / 319.6 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001861/0.1034, allocations: 59.92 kB / 319.6 MB, free: 5.055 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/0.1036, allocations: 101.2 kB / 319.7 MB, free: 4.957 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007541/0.1043, allocations: 422.8 kB / 320.2 MB, free: 4.543 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.007e-06/0.1044, allocations: 0 / 320.2 MB, free: 4.543 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000446/0.1048, allocations: 51.94 kB / 320.2 MB, free: 4.492 MB / 266.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.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,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,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.0001855/0.105, allocations: 115.2 kB / 320.3 MB, free: 4.367 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00088/0.1059, allocations: 0.536 MB / 320.8 MB, free: 3.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.042e-06/0.1059, allocations: 0 / 320.8 MB, free: 3.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000587/0.1065, allocations: 473 kB / 321.3 MB, free: 3.246 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007766/0.1073, allocations: 149.7 kB / 321.5 MB, free: 3.105 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001798/0.1091, allocations: 0.8939 MB / 322.4 MB, free: 2.18 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006625/0.1098, allocations: 0.8302 MB / 323.2 MB, free: 1.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.302e-05/0.1099, allocations: 15.38 kB / 323.2 MB, free: 1.305 MB / 266.7 MB Notification: Performance of SimCode: time 1.613e-06/0.1099, allocations: 0 / 323.2 MB, free: 1.305 MB / 266.7 MB Notification: Performance of Templates: time 0.008255/0.1182, allocations: 4.214 MB / 327.4 MB, free: 12.99 MB / 282.7 MB