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.173/1.173, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002641/0.0002642, allocations: 8 kB / 158.3 MB, free: 15.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0446/0.04489, allocations: 25.16 MB / 183.5 MB, free: 5.965 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1919/0.2368, allocations: 33.81 MB / 217.3 MB, free: 6.715 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001735/0.237, allocations: 59.31 kB / 217.4 MB, free: 6.707 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007208/0.2443, allocations: 1.967 MB / 219.3 MB, free: 5.75 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.236e-06/0.2443, allocations: 0 / 219.3 MB, free: 5.75 MB / 170.7 MB Notification: Performance of Transformations before backend: time 8.26e-06/0.2443, allocations: 3.844 kB / 219.3 MB, free: 5.75 MB / 170.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.0003789/0.2447, allocations: 0.4986 MB / 219.8 MB, free: 5.223 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.2448, allocations: 7.656 kB / 219.8 MB, free: 5.223 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.059e-05/0.2448, allocations: 11.59 kB / 219.8 MB, free: 5.219 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.862e-05/0.2449, allocations: 178 kB / 220 MB, free: 5.012 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.2449, allocations: 6.781 kB / 220 MB, free: 5.012 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.245, allocations: 7.562 kB / 220 MB, free: 5.012 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000206/0.2452, allocations: 97.08 kB / 220.1 MB, free: 4.965 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.2452, allocations: 3.938 kB / 220.1 MB, free: 4.961 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.2452, allocations: 3.5 kB / 220.1 MB, free: 4.961 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.484e-06/0.2453, allocations: 7.609 kB / 220.1 MB, free: 4.957 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001301/0.2454, allocations: 50.8 kB / 220.2 MB, free: 4.945 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004562/0.2459, allocations: 336.9 kB / 220.5 MB, free: 4.641 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.246, allocations: 71.27 kB / 220.6 MB, free: 4.609 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.2461, allocations: 7.938 kB / 220.6 MB, free: 4.602 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.2463, allocations: 166 kB / 220.8 MB, free: 4.469 MB / 170.7 MB Notification: Performance of pre-optimization done (n=11): time 2.538e-06/0.2463, allocations: 0 / 220.8 MB, free: 4.469 MB / 170.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005041/0.2468, allocations: 412.5 kB / 221.2 MB, free: 4.164 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.2469, allocations: 168.5 kB / 221.3 MB, free: 3.973 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.147e-05/0.247, allocations: 124.7 kB / 221.4 MB, free: 3.867 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.247, allocations: 29.55 kB / 221.5 MB, free: 3.836 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/0.2471, allocations: 173.2 kB / 221.6 MB, free: 3.68 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.2471, allocations: 23.5 kB / 221.7 MB, free: 3.664 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.032e-05/0.2471, allocations: 3.812 kB / 221.7 MB, free: 3.664 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 4.961e-05/0.2472, allocations: 310.8 kB / 222 MB, free: 3.352 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.207e-05/0.2473, allocations: 39.81 kB / 222 MB, free: 3.344 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.447e-05/0.2474, allocations: 39.7 kB / 222.1 MB, free: 3.34 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/0.2475, allocations: 139.3 kB / 222.2 MB, free: 3.211 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.758e-06/0.2475, allocations: 3.844 kB / 222.2 MB, free: 3.211 MB / 170.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003191/0.2478, allocations: 271.6 kB / 222.5 MB, free: 3.027 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.2479, allocations: 116.7 kB / 222.6 MB, free: 2.898 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.798e-06/0.2479, allocations: 4 kB / 222.6 MB, free: 2.895 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.2479, allocations: 0 / 222.6 MB, free: 2.895 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.836e-05/0.248, allocations: 7.781 kB / 222.6 MB, free: 2.891 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.722e-06/0.248, allocations: 0 / 222.6 MB, free: 2.891 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.864e-05/0.2481, allocations: 11.28 kB / 222.6 MB, free: 2.887 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.2481, allocations: 11.48 kB / 222.6 MB, free: 2.883 MB / 170.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.0001263/0.2483, allocations: 198.2 kB / 222.8 MB, free: 2.695 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.761e-05/0.2483, allocations: 16.42 kB / 222.8 MB, free: 2.688 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.071e-05/0.2484, allocations: 11.91 kB / 222.8 MB, free: 2.684 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.2484, allocations: 0 / 222.8 MB, free: 2.684 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.2484, allocations: 7.922 kB / 222.8 MB, free: 2.676 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.733e-06/0.2484, allocations: 0 / 222.8 MB, free: 2.676 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001357/0.2485, allocations: 201.6 kB / 223 MB, free: 2.465 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2486, allocations: 0 / 223 MB, free: 2.465 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.475e-06/0.2486, allocations: 0.875 kB / 223 MB, free: 2.465 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.436e-06/0.2486, allocations: 11.81 kB / 223 MB, free: 2.457 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.853e-05/0.2486, allocations: 7.406 kB / 223.1 MB, free: 2.457 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.2486, allocations: 7.984 kB / 223.1 MB, free: 2.449 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.2486, allocations: 3.938 kB / 223.1 MB, free: 2.445 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003687/0.249, allocations: 271 kB / 223.3 MB, free: 2.301 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.525e-05/0.2491, allocations: 84.83 kB / 223.4 MB, free: 2.203 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.854e-05/0.2491, allocations: 12.05 kB / 223.4 MB, free: 2.195 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.464e-05/0.2492, allocations: 15.59 kB / 223.4 MB, free: 2.188 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.775e-05/0.2493, allocations: 11.05 kB / 223.5 MB, free: 2.184 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.2493, allocations: 11.22 kB / 223.5 MB, free: 2.18 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.308e-05/0.2494, allocations: 97.86 kB / 223.6 MB, free: 2.102 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.25e-07/0.2494, allocations: 3.938 kB / 223.6 MB, free: 2.098 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.000363/0.2498, allocations: 57.45 kB / 223.6 MB, free: 2.09 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.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.0002299/0.25, allocations: 148.7 kB / 223.8 MB, free: 1.992 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0002974/0.2503, allocations: 336.8 kB / 224.1 MB, free: 1.719 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.677e-06/0.2503, allocations: 0 / 224.1 MB, free: 1.719 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.2505, allocations: 195.5 kB / 224.3 MB, free: 1.582 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001294/0.2507, allocations: 3.438 kB / 224.3 MB, free: 1.582 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004515/0.2511, allocations: 282.7 kB / 224.6 MB, free: 1.371 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001359/0.2513, allocations: 0.7101 MB / 225.3 MB, free: 0.6562 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.015e-05/0.2513, allocations: 11.25 kB / 225.3 MB, free: 0.6523 MB / 170.7 MB Notification: Performance of SimCode: time 1.34e-06/0.2513, allocations: 0 / 225.3 MB, free: 0.6523 MB / 170.7 MB Notification: Performance of Templates: time 0.003507/0.2548, allocations: 1.612 MB / 226.9 MB, free: 15.84 MB / 186.7 MB