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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.751/1.751, allocations: 171.3 MB / 179.2 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.362e-05/2.373e-05, allocations: 7.984 kB / 222.5 MB, free: 4.758 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2121, allocations: 38.77 MB / 261.3 MB, free: 12.98 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3158, allocations: 65.56 MB / 326.8 MB, free: 11.99 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.3161, allocations: 63.97 kB / 326.9 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009736/0.3259, allocations: 2.129 MB / 329 MB, free: 9.793 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3259, allocations: 0 / 329 MB, free: 9.793 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.326, allocations: 0 / 329 MB, free: 9.793 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.0005894/0.3266, allocations: 477.2 kB / 329.5 MB, free: 9.258 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.3266, allocations: 12.03 kB / 329.5 MB, free: 9.246 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.845e-05/0.3267, allocations: 11.91 kB / 329.5 MB, free: 9.234 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001726/0.3269, allocations: 178.8 kB / 329.7 MB, free: 9.02 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.3269, allocations: 7.984 kB / 329.7 MB, free: 9.012 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.327, allocations: 8 kB / 329.7 MB, free: 9.004 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001674/0.3271, allocations: 40 kB / 329.7 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.3274, allocations: 85.62 kB / 329.8 MB, free: 8.875 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3274, allocations: 0 / 329.8 MB, free: 8.875 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.3274, allocations: 4 kB / 329.8 MB, free: 8.871 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.097e-06/0.3274, allocations: 3.938 kB / 329.8 MB, free: 8.867 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006102/0.3281, allocations: 313.3 kB / 330.1 MB, free: 8.523 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.3283, allocations: 66.58 kB / 330.2 MB, free: 8.449 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.3284, allocations: 48.94 kB / 330.2 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.3284, allocations: 8 kB / 330.3 MB, free: 8.391 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002736/0.3287, allocations: 150.8 kB / 330.4 MB, free: 8.219 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 4.272e-06/0.3287, allocations: 0 / 330.4 MB, free: 8.219 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004419/0.3292, allocations: 153.5 kB / 330.6 MB, free: 8.062 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.3293, allocations: 166.2 kB / 330.7 MB, free: 7.863 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.3295, allocations: 121.1 kB / 330.8 MB, free: 7.734 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.877e-05/0.3295, allocations: 37.69 kB / 330.9 MB, free: 7.691 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.3297, allocations: 166.5 kB / 331 MB, free: 7.527 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.966e-05/0.3297, allocations: 23.7 kB / 331.1 MB, free: 7.504 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.944e-06/0.3297, allocations: 0 / 331.1 MB, free: 7.504 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.3299, allocations: 322.8 kB / 331.4 MB, free: 7.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.353e-05/0.33, allocations: 39.86 kB / 331.4 MB, free: 7.141 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.182e-05/0.3301, allocations: 32 kB / 331.4 MB, free: 7.109 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.3303, allocations: 37.84 kB / 331.5 MB, free: 7.074 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.669e-06/0.3303, allocations: 3.953 kB / 331.5 MB, free: 7.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004043/0.3308, allocations: 141.6 kB / 331.6 MB, free: 6.926 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/0.3309, allocations: 114.8 kB / 331.7 MB, free: 6.789 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.901e-06/0.3309, allocations: 4 kB / 331.7 MB, free: 6.785 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.3309, allocations: 0 / 331.7 MB, free: 6.785 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.199e-05/0.331, allocations: 4 kB / 331.7 MB, free: 6.781 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.358e-06/0.331, allocations: 4 kB / 331.7 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.3311, allocations: 11.92 kB / 331.8 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.3312, allocations: 4.062 kB / 331.8 MB, free: 6.762 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.0001893/0.3314, allocations: 176.3 kB / 331.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.931e-05/0.3314, allocations: 23.86 kB / 332 MB, free: 6.547 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.204e-05/0.3315, allocations: 12.62 kB / 332 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3315, allocations: 0 / 332 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.714e-06/0.3315, allocations: 0 / 332 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.3315, allocations: 3.984 kB / 332 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000218/0.3317, allocations: 178.1 kB / 332.1 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.992e-06/0.3318, allocations: 0 / 332.1 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.22e-05/0.3318, allocations: 0 / 332.1 MB, free: 6.316 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.501e-06/0.3318, allocations: 3.953 kB / 332.2 MB, free: 6.312 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.3318, allocations: 4 kB / 332.2 MB, free: 6.309 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.3318, allocations: 4 kB / 332.2 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.632e-06/0.3319, allocations: 0 / 332.2 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004519/0.3323, allocations: 205 kB / 332.4 MB, free: 6.086 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.032e-05/0.3324, allocations: 89.03 kB / 332.4 MB, free: 5.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.421e-05/0.3325, allocations: 11.95 kB / 332.5 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.3326, allocations: 11.98 kB / 332.5 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.096e-05/0.3327, allocations: 11.98 kB / 332.5 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.3327, allocations: 4 kB / 332.5 MB, free: 5.941 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.696e-05/0.3328, allocations: 99.27 kB / 332.6 MB, free: 5.844 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.7e-07/0.3329, allocations: 4 kB / 332.6 MB, free: 5.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000405/0.3333, allocations: 44 kB / 332.6 MB, free: 5.797 MB / 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.0003269/0.3336, allocations: 143.2 kB / 332.8 MB, free: 5.652 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004813/0.3341, allocations: 321.5 kB / 333.1 MB, free: 5.289 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.695e-06/0.3341, allocations: 0 / 333.1 MB, free: 5.289 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.3344, allocations: 190.8 kB / 333.3 MB, free: 5.078 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/0.3346, allocations: 8 kB / 333.3 MB, free: 5.07 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004921/0.3351, allocations: 182.1 kB / 333.5 MB, free: 4.867 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.3355, allocations: 0.7079 MB / 334.2 MB, free: 4.133 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.057e-05/0.3355, allocations: 11.44 kB / 334.2 MB, free: 4.125 MB / 282.7 MB Notification: Performance of SimCode: time 1.874e-06/0.3355, allocations: 0 / 334.2 MB, free: 4.125 MB / 282.7 MB Notification: Performance of Templates: time 0.004623/0.3402, allocations: 1.582 MB / 335.8 MB, free: 2.543 MB / 282.7 MB