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 1.032/1.032, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004924/0.0004929, allocations: 11.98 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07191/0.07245, allocations: 25.17 MB / 183.4 MB, free: 6.027 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00161/0.07411, allocations: 1.031 MB / 184.4 MB, free: 4.996 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.07514, allocations: 0.4965 MB / 184.9 MB, free: 4.496 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.478e-05/0.0752, allocations: 0 / 184.9 MB, free: 4.496 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 3.787e-05/0.07528, allocations: 7.938 kB / 184.9 MB, free: 4.488 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 6.894e-05/0.07536, allocations: 7.984 kB / 185 MB, free: 4.48 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006358/0.076, allocations: 139.7 kB / 185.1 MB, free: 4.344 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.07613, allocations: 47.94 kB / 185.1 MB, free: 4.297 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.757e-05/0.07624, allocations: 19.98 kB / 185.2 MB, free: 4.277 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.834e-05/0.0763, allocations: 23.92 kB / 185.2 MB, free: 4.254 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.831e-05/0.07638, allocations: 35.83 kB / 185.2 MB, free: 4.219 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 2.092e-05/0.07641, allocations: 4 kB / 185.2 MB, free: 4.215 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.07664, allocations: 91.92 kB / 185.3 MB, free: 4.125 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 4.143e-05/0.07669, allocations: 15.92 kB / 185.3 MB, free: 4.109 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 6.002e-05/0.07677, allocations: 41.64 kB / 185.4 MB, free: 4.062 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002203/0.077, allocations: 120 kB / 185.5 MB, free: 3.945 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.663e-06/0.07701, allocations: 0 / 185.5 MB, free: 3.945 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.07703, allocations: 0 / 185.5 MB, free: 3.945 MB / 154.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.07704, allocations: 0 / 185.5 MB, free: 3.945 MB / 154.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.0005642/0.07761, allocations: 489.9 kB / 186 MB, free: 3.395 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.07767, allocations: 12.02 kB / 186 MB, free: 3.383 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.037e-05/0.07773, allocations: 15.91 kB / 186 MB, free: 3.367 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000163/0.0779, allocations: 170.9 kB / 186.2 MB, free: 3.16 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/0.07794, allocations: 8 kB / 186.2 MB, free: 3.152 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.898e-05/0.07798, allocations: 11.94 kB / 186.2 MB, free: 3.141 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002399/0.07823, allocations: 93.59 kB / 186.3 MB, free: 3.043 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.07826, allocations: 4 kB / 186.3 MB, free: 3.039 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.07829, allocations: 4 kB / 186.3 MB, free: 3.035 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.128e-06/0.07831, allocations: 3.953 kB / 186.3 MB, free: 3.031 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001401/0.07845, allocations: 51.97 kB / 186.3 MB, free: 2.98 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005896/0.07906, allocations: 356.5 kB / 186.7 MB, free: 2.582 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.07925, allocations: 70.56 kB / 186.7 MB, free: 2.504 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.203e-05/0.07928, allocations: 0 / 186.7 MB, free: 2.504 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000284/0.07957, allocations: 162.8 kB / 186.9 MB, free: 2.32 MB / 154.7 MB Notification: Performance of pre-optimization done (n=11): time 4.866e-06/0.0796, allocations: 96 / 186.9 MB, free: 2.32 MB / 154.7 MB Notification: Performance of matching and sorting (n=11): time 0.000666/0.08027, allocations: 419 kB / 187.3 MB, free: 1.855 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.08041, allocations: 166.2 kB / 187.5 MB, free: 1.656 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.08058, allocations: 138 kB / 187.6 MB, free: 1.508 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.08063, allocations: 33.69 kB / 187.6 MB, free: 1.469 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.08074, allocations: 162.5 kB / 187.8 MB, free: 1.309 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.683e-05/0.08079, allocations: 19.89 kB / 187.8 MB, free: 1.289 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.154e-05/0.08082, allocations: 4 kB / 187.8 MB, free: 1.285 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.08099, allocations: 322.8 kB / 188.1 MB, free: 0.9609 MB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.298e-05/0.08109, allocations: 35.98 kB / 188.2 MB, free: 0.9258 MB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.085e-05/0.08119, allocations: 31.98 kB / 188.2 MB, free: 0.8945 MB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.08137, allocations: 146.7 kB / 188.3 MB, free: 0.7266 MB / 154.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.6e-06/0.08138, allocations: 0 / 188.3 MB, free: 0.7266 MB / 154.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004737/0.08186, allocations: 262.9 kB / 188.6 MB, free: 452 kB / 154.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.08198, allocations: 118.8 kB / 188.7 MB, free: 308 kB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.823e-06/0.082, allocations: 4 kB / 188.7 MB, free: 304 kB / 154.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.08203, allocations: 0 / 188.7 MB, free: 304 kB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.522e-05/0.08207, allocations: 4 kB / 188.7 MB, free: 300 kB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.08209, allocations: 3.984 kB / 188.7 MB, free: 296 kB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.08221, allocations: 11.91 kB / 188.7 MB, free: 284 kB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.08224, allocations: 4 kB / 188.7 MB, free: 280 kB / 154.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.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * 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.000207/0.08246, allocations: 201.1 kB / 188.9 MB, free: 56 kB / 154.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.0825, allocations: 11.95 kB / 189 MB, free: 44 kB / 154.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.142e-05/0.08254, allocations: 12.36 kB / 189 MB, free: 32 kB / 154.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.49e-06/0.08256, allocations: 4 kB / 189 MB, free: 28 kB / 154.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.795e-06/0.08257, allocations: 0 / 189 MB, free: 28 kB / 154.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.08259, allocations: 0 / 189 MB, free: 28 kB / 154.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002572/0.08285, allocations: 205.5 kB / 189.2 MB, free: 15.78 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.787e-06/0.08287, allocations: 7.938 kB / 189.2 MB, free: 15.77 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.711e-06/0.08289, allocations: 0 / 189.2 MB, free: 15.77 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.058e-06/0.0829, allocations: 3.953 kB / 189.2 MB, free: 15.77 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.08294, allocations: 8 kB / 189.2 MB, free: 15.76 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.539e-06/0.08295, allocations: 0 / 189.2 MB, free: 15.76 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.942e-06/0.08296, allocations: 0 / 189.2 MB, free: 15.76 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00049/0.08346, allocations: 280.7 kB / 189.5 MB, free: 15.45 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.305e-05/0.08354, allocations: 84.95 kB / 189.5 MB, free: 15.35 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.484e-05/0.08359, allocations: 11.94 kB / 189.6 MB, free: 15.34 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.08371, allocations: 16 kB / 189.6 MB, free: 15.32 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.575e-05/0.08378, allocations: 12.03 kB / 189.6 MB, free: 15.31 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.08381, allocations: 12 kB / 189.6 MB, free: 15.3 MB / 170.7 MB Notification: Performance of sorting global known variables: time 9.199e-05/0.08392, allocations: 107.2 kB / 189.7 MB, free: 15.2 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.16e-07/0.08393, allocations: 4 kB / 189.7 MB, free: 15.19 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0003591/0.0843, allocations: 52 kB / 189.8 MB, free: 15.14 MB / 170.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.y,Pre1.u,Pre1.y) * 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.000288/0.0846, allocations: 143.2 kB / 189.9 MB, free: 14.99 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004514/0.08507, allocations: 333.4 kB / 190.2 MB, free: 14.62 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.953e-06/0.08509, allocations: 0 / 190.2 MB, free: 14.62 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002536/0.08536, allocations: 190.8 kB / 190.4 MB, free: 14.41 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001525/0.08552, allocations: 19.86 kB / 190.4 MB, free: 14.39 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005681/0.08611, allocations: 275 kB / 190.7 MB, free: 14.08 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.08651, allocations: 0.7004 MB / 191.4 MB, free: 13.35 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.653e-05/0.08655, allocations: 15.44 kB / 191.4 MB, free: 13.34 MB / 170.7 MB Notification: Performance of SimCode: time 1.636e-06/0.08656, allocations: 0 / 191.4 MB, free: 13.34 MB / 170.7 MB Notification: Performance of Templates: time 0.004159/0.09073, allocations: 1.628 MB / 193 MB, free: 11.71 MB / 170.7 MB