Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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.977/1.977, allocations: 171.2 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003593/0.0003593, allocations: 8 kB / 233.8 MB, free: 3.086 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08671/0.08709, allocations: 38.76 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3358/0.423, allocations: 66.31 MB / 338.8 MB, free: 7.594 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.4232, allocations: 73.03 kB / 338.9 MB, free: 7.559 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01035/0.4336, allocations: 2.148 MB / 341.1 MB, free: 5.637 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4337, allocations: 0 / 341.1 MB, free: 5.637 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.4337, allocations: 4 kB / 341.1 MB, free: 5.633 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.0005746/0.4343, allocations: 492.8 kB / 341.5 MB, free: 5.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.4343, allocations: 8.031 kB / 341.6 MB, free: 5.082 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.521e-05/0.4344, allocations: 11.91 kB / 341.6 MB, free: 5.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.4346, allocations: 167 kB / 341.7 MB, free: 4.867 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/0.4346, allocations: 11.19 kB / 341.7 MB, free: 4.859 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.4346, allocations: 15.88 kB / 341.8 MB, free: 4.844 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002705/0.4349, allocations: 99.84 kB / 341.8 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-06/0.4349, allocations: 0 / 341.8 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.435, allocations: 3.812 kB / 341.9 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.435, allocations: 4 kB / 341.9 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001501/0.4351, allocations: 50.55 kB / 341.9 MB, free: 4.723 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006356/0.4358, allocations: 347.2 kB / 342.2 MB, free: 4.367 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.436, allocations: 72.55 kB / 342.3 MB, free: 4.305 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.4361, allocations: 0 / 342.3 MB, free: 4.305 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000281/0.4363, allocations: 166.6 kB / 342.5 MB, free: 4.137 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 2.154e-06/0.4364, allocations: 7.938 kB / 342.5 MB, free: 4.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007765/0.4372, allocations: 414 kB / 342.9 MB, free: 3.715 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.4373, allocations: 161.7 kB / 343 MB, free: 3.523 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.4375, allocations: 131.9 kB / 343.2 MB, free: 3.391 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.4375, allocations: 33.08 kB / 343.2 MB, free: 3.355 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.4376, allocations: 173.2 kB / 343.4 MB, free: 3.191 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.846e-05/0.4377, allocations: 27.34 kB / 343.4 MB, free: 3.168 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.188e-05/0.4377, allocations: 3.625 kB / 343.4 MB, free: 3.168 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4379, allocations: 318.8 kB / 343.7 MB, free: 2.848 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.438, allocations: 41.23 kB / 343.8 MB, free: 2.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.4381, allocations: 42.75 kB / 343.8 MB, free: 2.789 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.4383, allocations: 149.1 kB / 343.9 MB, free: 2.637 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.4383, allocations: 0 / 343.9 MB, free: 2.637 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004654/0.4388, allocations: 262.7 kB / 344.2 MB, free: 2.379 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.48e-05/0.4389, allocations: 118 kB / 344.3 MB, free: 2.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.4389, allocations: 0 / 344.3 MB, free: 2.242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.439, allocations: 0 / 344.3 MB, free: 2.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.691e-05/0.439, allocations: 3.984 kB / 344.3 MB, free: 2.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.439, allocations: 4 kB / 344.3 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.4391, allocations: 14.5 kB / 344.3 MB, free: 2.223 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.725e-05/0.4392, allocations: 4 kB / 344.3 MB, free: 2.219 MB / 266.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 () * Number of clocked 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.0002192/0.4394, allocations: 206.4 kB / 344.5 MB, free: 2.004 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.416e-05/0.4395, allocations: 7.906 kB / 344.6 MB, free: 1.996 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.162e-05/0.4395, allocations: 11.38 kB / 344.6 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.4395, allocations: 0 / 344.6 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4395, allocations: 0 / 344.6 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4396, allocations: 4 kB / 344.6 MB, free: 1.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002243/0.4398, allocations: 215 kB / 344.8 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4398, allocations: 0 / 344.8 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.039e-05/0.4398, allocations: 0 / 344.8 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.4398, allocations: 0 / 344.8 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.4399, allocations: 4 kB / 344.8 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.4399, allocations: 0 / 344.8 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4399, allocations: 0 / 344.8 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000549/0.4404, allocations: 287.5 kB / 345.1 MB, free: 1.473 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.746e-05/0.4406, allocations: 85.03 kB / 345.1 MB, free: 1.371 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.771e-05/0.4406, allocations: 11.98 kB / 345.2 MB, free: 1.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.4408, allocations: 10.94 kB / 345.2 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.705e-05/0.4408, allocations: 8.859 kB / 345.2 MB, free: 1.344 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/0.4409, allocations: 11.36 kB / 345.2 MB, free: 1.336 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.443e-05/0.441, allocations: 102.1 kB / 345.3 MB, free: 1.242 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.441, allocations: 0 / 345.3 MB, free: 1.242 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003982/0.4414, allocations: 51.44 kB / 345.3 MB, free: 1.195 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: 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) * Number of clocked states: 0 () * 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.0003069/0.4417, allocations: 147.2 kB / 345.5 MB, free: 1.043 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004694/0.4422, allocations: 334.5 kB / 345.8 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4422, allocations: 0 / 345.8 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002589/0.4425, allocations: 190.4 kB / 346 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001622/0.4427, allocations: 15.75 kB / 346 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006597/0.4433, allocations: 279.8 kB / 346.3 MB, free: 240 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.4437, allocations: 0.7004 MB / 347 MB, free: 15.51 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.991e-05/0.4437, allocations: 11.44 kB / 347 MB, free: 15.5 MB / 282.7 MB Notification: Performance of SimCode: time 1.152e-06/0.4437, allocations: 3.938 kB / 347 MB, free: 15.5 MB / 282.7 MB Notification: Performance of Templates: time 0.004842/0.4486, allocations: 1.587 MB / 348.6 MB, free: 13.92 MB / 282.7 MB