Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 0.9211/0.9211, allocations: 111.2 MB / 124.2 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.279e-05/2.292e-05, allocations: 0 / 154.3 MB, free: 13.21 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1425, allocations: 25.16 MB / 179.4 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05079/0.1933, allocations: 33.72 MB / 213.1 MB, free: 15.41 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.1936, allocations: 59.98 kB / 213.2 MB, free: 15.35 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008042/0.2016, allocations: 1.967 MB / 215.2 MB, free: 13.38 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.939e-06/0.2017, allocations: 0 / 215.2 MB, free: 13.38 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.2017, allocations: 4 kB / 215.2 MB, free: 13.38 MB / 186.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.0004991/0.2022, allocations: 489.1 kB / 215.6 MB, free: 12.83 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.2022, allocations: 8.031 kB / 215.7 MB, free: 12.82 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.79e-05/0.2023, allocations: 11.91 kB / 215.7 MB, free: 12.81 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.2025, allocations: 170.9 kB / 215.8 MB, free: 12.61 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.2025, allocations: 11.98 kB / 215.8 MB, free: 12.59 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.24e-05/0.2026, allocations: 12 kB / 215.9 MB, free: 12.58 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/0.2028, allocations: 94.59 kB / 215.9 MB, free: 12.48 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.923e-06/0.2028, allocations: 4 kB / 216 MB, free: 12.48 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.2029, allocations: 0 / 216 MB, free: 12.48 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.612e-06/0.2029, allocations: 3.953 kB / 216 MB, free: 12.48 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.203, allocations: 48 kB / 216 MB, free: 12.43 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005808/0.2036, allocations: 348.6 kB / 216.3 MB, free: 12.04 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001684/0.2038, allocations: 66.56 kB / 216.4 MB, free: 11.96 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.908e-05/0.2039, allocations: 48.92 kB / 216.5 MB, free: 11.91 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/0.2039, allocations: 0 / 216.5 MB, free: 11.91 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002571/0.2042, allocations: 166.7 kB / 216.6 MB, free: 11.73 MB / 186.7 MB Notification: Performance of pre-optimization done (n=11): time 2.394e-06/0.2042, allocations: 0 / 216.6 MB, free: 11.73 MB / 186.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004421/0.2047, allocations: 217 kB / 216.8 MB, free: 11.5 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.2048, allocations: 170.2 kB / 217 MB, free: 11.29 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.205, allocations: 121.2 kB / 217.1 MB, free: 11.16 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.205, allocations: 33.7 kB / 217.1 MB, free: 11.12 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.2051, allocations: 166.5 kB / 217.3 MB, free: 10.96 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.2e-05/0.2052, allocations: 19.72 kB / 217.3 MB, free: 10.94 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.388e-05/0.2052, allocations: 4 kB / 217.3 MB, free: 10.94 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.2053, allocations: 322.8 kB / 217.7 MB, free: 10.61 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.2055, allocations: 36 kB / 217.7 MB, free: 10.58 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.903e-05/0.2056, allocations: 37.08 kB / 217.7 MB, free: 10.54 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.2057, allocations: 144.2 kB / 217.9 MB, free: 10.38 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.811e-06/0.2057, allocations: 0 / 217.9 MB, free: 10.38 MB / 186.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004171/0.2062, allocations: 268.3 kB / 218.1 MB, free: 10.09 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.031e-05/0.2063, allocations: 117 kB / 218.2 MB, free: 9.949 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.056e-06/0.2063, allocations: 0 / 218.2 MB, free: 9.949 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.2063, allocations: 0 / 218.2 MB, free: 9.949 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.107e-05/0.2064, allocations: 15.92 kB / 218.3 MB, free: 9.934 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.039e-06/0.2064, allocations: 0 / 218.3 MB, free: 9.934 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.066e-05/0.2065, allocations: 11.91 kB / 218.3 MB, free: 9.922 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.421e-05/0.2065, allocations: 8 kB / 218.3 MB, free: 9.914 MB / 186.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.0001787/0.2067, allocations: 188.3 kB / 218.5 MB, free: 9.711 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.272e-05/0.2067, allocations: 15.86 kB / 218.5 MB, free: 9.695 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.628e-05/0.2068, allocations: 8.609 kB / 218.5 MB, free: 9.68 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.005e-06/0.2068, allocations: 4 kB / 218.5 MB, free: 9.676 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.812e-06/0.2068, allocations: 0 / 218.5 MB, free: 9.676 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.543e-06/0.2068, allocations: 4 kB / 218.5 MB, free: 9.672 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002099/0.2071, allocations: 201.6 kB / 218.7 MB, free: 9.426 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.138e-06/0.2071, allocations: 0 / 218.7 MB, free: 9.426 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.425e-05/0.2071, allocations: 3.984 kB / 218.7 MB, free: 9.422 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.614e-06/0.2071, allocations: 7.953 kB / 218.7 MB, free: 9.414 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.2071, allocations: 4 kB / 218.7 MB, free: 9.41 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.229e-06/0.2072, allocations: 0 / 218.7 MB, free: 9.41 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.658e-06/0.2072, allocations: 64 / 218.7 MB, free: 9.41 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004883/0.2077, allocations: 280.3 kB / 219 MB, free: 9.105 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.234e-05/0.2077, allocations: 97.02 kB / 219.1 MB, free: 8.992 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.124e-05/0.2078, allocations: 7.953 kB / 219.1 MB, free: 8.984 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.2079, allocations: 11.98 kB / 219.1 MB, free: 8.973 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.748e-05/0.208, allocations: 11.98 kB / 219.1 MB, free: 8.961 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.208, allocations: 4 kB / 219.1 MB, free: 8.957 MB / 186.7 MB Notification: Performance of sorting global known variables: time 8.33e-05/0.2081, allocations: 99.27 kB / 219.2 MB, free: 8.859 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.77e-07/0.2081, allocations: 0 / 219.2 MB, free: 8.859 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003449/0.2085, allocations: 56 kB / 219.3 MB, free: 8.805 MB / 186.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.000284/0.2088, allocations: 155.2 kB / 219.4 MB, free: 8.645 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004149/0.2092, allocations: 333.5 kB / 219.7 MB, free: 8.27 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.382e-06/0.2092, allocations: 0 / 219.7 MB, free: 8.27 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002307/0.2095, allocations: 190.8 kB / 219.9 MB, free: 8.055 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.2096, allocations: 8 kB / 219.9 MB, free: 8.047 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004293/0.21, allocations: 193.3 kB / 220.1 MB, free: 7.832 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.2104, allocations: 0.7043 MB / 220.8 MB, free: 7.102 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.282e-05/0.2105, allocations: 11.44 kB / 220.8 MB, free: 7.094 MB / 186.7 MB Notification: Performance of SimCode: time 1.36e-06/0.2105, allocations: 0 / 220.8 MB, free: 7.094 MB / 186.7 MB Notification: Performance of Templates: time 0.003927/0.2144, allocations: 1.607 MB / 222.4 MB, free: 5.484 MB / 186.7 MB