Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.587/1.587, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.847e-05/2.871e-05, allocations: 7.984 kB / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2046, allocations: 38.78 MB / 267.6 MB, free: 9.43 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09745/0.3021, allocations: 66.22 MB / 333.8 MB, free: 7.109 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.3024, allocations: 63.97 kB / 333.9 MB, free: 7.047 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008787/0.3112, allocations: 2.132 MB / 336 MB, free: 4.906 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.634e-06/0.3112, allocations: 0 / 336 MB, free: 4.906 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.199e-06/0.3112, allocations: 0 / 336 MB, free: 4.906 MB / 282.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.0004697/0.3117, allocations: 481.1 kB / 336.5 MB, free: 4.367 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3118, allocations: 8.031 kB / 336.5 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.306e-05/0.3118, allocations: 11.91 kB / 336.5 MB, free: 4.348 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001519/0.312, allocations: 178.9 kB / 336.7 MB, free: 4.133 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.312, allocations: 4 kB / 336.7 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.3121, allocations: 8 kB / 336.7 MB, free: 4.121 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.3123, allocations: 99.25 kB / 336.8 MB, free: 4.02 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.497e-06/0.3123, allocations: 4 kB / 336.8 MB, free: 4.016 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.851e-05/0.3124, allocations: 4 kB / 336.8 MB, free: 4.012 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.126e-06/0.3124, allocations: 4 kB / 336.8 MB, free: 4.008 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001344/0.3125, allocations: 47.98 kB / 336.8 MB, free: 3.961 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005617/0.3131, allocations: 348.6 kB / 337.2 MB, free: 3.57 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.3133, allocations: 62.58 kB / 337.2 MB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.3134, allocations: 56.91 kB / 337.3 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.3134, allocations: 0 / 337.3 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.3137, allocations: 162.7 kB / 337.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 5.036e-06/0.3137, allocations: 96 / 337.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004425/0.3142, allocations: 212.9 kB / 337.7 MB, free: 3.031 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.3143, allocations: 170.2 kB / 337.8 MB, free: 2.828 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.3145, allocations: 117.1 kB / 337.9 MB, free: 2.703 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.3145, allocations: 41.69 kB / 338 MB, free: 2.656 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.3146, allocations: 166.5 kB / 338.1 MB, free: 2.492 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.897e-05/0.3147, allocations: 27.64 kB / 338.2 MB, free: 2.465 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.288e-05/0.3147, allocations: 4 kB / 338.2 MB, free: 2.461 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.3149, allocations: 326.7 kB / 338.5 MB, free: 2.133 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.772e-05/0.315, allocations: 35.98 kB / 338.5 MB, free: 2.098 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.151e-05/0.3151, allocations: 34.19 kB / 338.6 MB, free: 2.066 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.3153, allocations: 146.8 kB / 338.7 MB, free: 1.898 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.692e-06/0.3153, allocations: 0 / 338.7 MB, free: 1.898 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004289/0.3158, allocations: 268.4 kB / 339 MB, free: 1.605 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.327e-05/0.3159, allocations: 120.7 kB / 339.1 MB, free: 1.465 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.902e-06/0.3159, allocations: 4 kB / 339.1 MB, free: 1.461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.3159, allocations: 0 / 339.1 MB, free: 1.461 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.561e-05/0.3159, allocations: 4 kB / 339.1 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.174e-06/0.316, allocations: 0 / 339.1 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.281e-05/0.3161, allocations: 4 kB / 339.1 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.319e-05/0.3161, allocations: 8 kB / 339.1 MB, free: 1.445 MB / 282.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: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.u2,And1.y,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0001673/0.3163, allocations: 194 kB / 339.3 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.291e-05/0.3163, allocations: 11.91 kB / 339.3 MB, free: 1.227 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.257e-05/0.3164, allocations: 12.61 kB / 339.3 MB, free: 1.215 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.3164, allocations: 4 kB / 339.3 MB, free: 1.211 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.75e-06/0.3164, allocations: 0 / 339.3 MB, free: 1.211 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.015e-06/0.3164, allocations: 0 / 339.3 MB, free: 1.211 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.3166, allocations: 209.6 kB / 339.5 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.131e-06/0.3167, allocations: 0 / 339.5 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.172e-05/0.3167, allocations: 4 kB / 339.5 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.133e-06/0.3167, allocations: 4 kB / 339.5 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.3167, allocations: 4 kB / 339.5 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.3167, allocations: 3.938 kB / 339.5 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.3167, allocations: 0 / 339.5 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004705/0.3172, allocations: 264.5 kB / 339.8 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.3173, allocations: 92.91 kB / 339.9 MB, free: 0.543 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.121e-05/0.3174, allocations: 4 kB / 339.9 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.3175, allocations: 15.98 kB / 339.9 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.3175, allocations: 19.91 kB / 339.9 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.876e-05/0.3176, allocations: 4 kB / 339.9 MB, free: 0.5 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.733e-05/0.3177, allocations: 99.27 kB / 340 MB, free: 412 kB / 282.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.3177, allocations: 0 / 340 MB, free: 412 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003519/0.3181, allocations: 56 kB / 340.1 MB, free: 356 kB / 282.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: 11 ($whenCondition1,$whenCondition2,table2.y,table2.nextTime,table2.index,table1.y,table1.nextTime,table1.index,And1.u2,And1.y,Pre1.u) * Number of discrete states: 9 (Pre1.u,table1.y,table1.nextTime,table1.index,$whenCondition1,table2.y,table2.nextTime,table2.index,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.0002698/0.3183, allocations: 143.1 kB / 340.2 MB, free: 200 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004458/0.3188, allocations: 326.7 kB / 340.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.984e-06/0.3188, allocations: 7.938 kB / 340.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002333/0.3191, allocations: 190.8 kB / 340.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.3192, allocations: 15.92 kB / 340.8 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000433/0.3197, allocations: 187.2 kB / 340.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.3201, allocations: 0.7004 MB / 341.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.406e-05/0.3201, allocations: 11.44 kB / 341.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of SimCode: time 1.318e-06/0.3201, allocations: 0 / 341.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of Templates: time 0.003985/0.3241, allocations: 1.579 MB / 343.2 MB, free: 13.07 MB / 298.7 MB