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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.9956/0.9956, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.764e-05/2.779e-05, allocations: 4 kB / 148.1 MB, free: 6.242 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0701/0.07016, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1772/0.2474, allocations: 33.05 MB / 206.3 MB, free: 7.023 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000162/0.2476, allocations: 57.92 kB / 206.4 MB, free: 7.023 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007067/0.2547, allocations: 1.962 MB / 208.4 MB, free: 6.637 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.797e-06/0.2547, allocations: 4 kB / 208.4 MB, free: 6.633 MB / 170.7 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.2547, allocations: 1.375 kB / 208.4 MB, free: 6.633 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.0003397/0.2551, allocations: 485.5 kB / 208.8 MB, free: 6.145 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.2551, allocations: 9.625 kB / 208.8 MB, free: 6.145 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.828e-05/0.2552, allocations: 10.78 kB / 208.8 MB, free: 6.141 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.173e-05/0.2553, allocations: 184.8 kB / 209 MB, free: 5.926 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.2553, allocations: 4.125 kB / 209 MB, free: 5.926 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.2553, allocations: 6.875 kB / 209 MB, free: 5.926 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001358/0.2555, allocations: 42.56 kB / 209.1 MB, free: 5.926 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001675/0.2557, allocations: 85.27 kB / 209.2 MB, free: 5.891 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.2557, allocations: 0 / 209.2 MB, free: 5.891 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/0.2557, allocations: 6.703 kB / 209.2 MB, free: 5.887 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.455e-06/0.2558, allocations: 1.375 kB / 209.2 MB, free: 5.887 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004245/0.2562, allocations: 313.1 kB / 209.5 MB, free: 5.652 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.2564, allocations: 72.88 kB / 209.6 MB, free: 5.621 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.181e-05/0.2565, allocations: 43.41 kB / 209.6 MB, free: 5.613 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.2565, allocations: 5.188 kB / 209.6 MB, free: 5.609 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001894/0.2567, allocations: 156.4 kB / 209.8 MB, free: 5.496 MB / 170.7 MB Notification: Performance of pre-optimization done (n=11): time 2.516e-06/0.2567, allocations: 5.375 kB / 209.8 MB, free: 5.492 MB / 170.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003432/0.257, allocations: 141.3 kB / 209.9 MB, free: 5.457 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.2571, allocations: 170.8 kB / 210.1 MB, free: 5.266 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.957e-05/0.2572, allocations: 122.5 kB / 210.2 MB, free: 5.168 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.2572, allocations: 29.41 kB / 210.2 MB, free: 5.137 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.965e-05/0.2573, allocations: 165.4 kB / 210.4 MB, free: 4.984 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.645e-05/0.2573, allocations: 22.11 kB / 210.4 MB, free: 4.973 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.532e-06/0.2574, allocations: 0 / 210.4 MB, free: 4.973 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.135e-05/0.2574, allocations: 318.2 kB / 210.7 MB, free: 4.66 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.987e-05/0.2575, allocations: 30.16 kB / 210.7 MB, free: 4.66 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.212e-05/0.2576, allocations: 39.02 kB / 210.8 MB, free: 4.656 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.2578, allocations: 38.56 kB / 210.8 MB, free: 4.652 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.589e-06/0.2578, allocations: 0 / 210.8 MB, free: 4.652 MB / 170.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003489/0.2581, allocations: 148.5 kB / 211 MB, free: 4.613 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.203e-05/0.2582, allocations: 118.4 kB / 211.1 MB, free: 4.488 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.685e-06/0.2582, allocations: 1.094 kB / 211.1 MB, free: 4.488 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.2582, allocations: 1.188 kB / 211.1 MB, free: 4.488 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.276e-05/0.2583, allocations: 1.094 kB / 211.1 MB, free: 4.488 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.337e-06/0.2583, allocations: 1.469 kB / 211.1 MB, free: 4.488 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.969e-05/0.2584, allocations: 6.281 kB / 211.1 MB, free: 4.488 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.13e-05/0.2584, allocations: 9.25 kB / 211.1 MB, free: 4.484 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 () * 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.0001033/0.2585, allocations: 186.7 kB / 211.3 MB, free: 4.309 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.047e-05/0.2586, allocations: 14.33 kB / 211.3 MB, free: 4.301 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.942e-05/0.2586, allocations: 11.78 kB / 211.3 MB, free: 4.289 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.587e-06/0.2586, allocations: 0 / 211.3 MB, free: 4.289 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.149e-06/0.2586, allocations: 1.062 kB / 211.3 MB, free: 4.289 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.404e-06/0.2586, allocations: 0 / 211.3 MB, free: 4.289 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001244/0.2588, allocations: 181 kB / 211.5 MB, free: 4.129 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2588, allocations: 4 kB / 211.5 MB, free: 4.125 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.304e-06/0.2588, allocations: 1.938 kB / 211.5 MB, free: 4.125 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.339e-06/0.2588, allocations: 1.25 kB / 211.5 MB, free: 4.125 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.2589, allocations: 3.812 kB / 211.5 MB, free: 4.125 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.495e-06/0.2589, allocations: 5.5 kB / 211.5 MB, free: 4.121 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.198e-06/0.2589, allocations: 0 / 211.5 MB, free: 4.121 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.2592, allocations: 200.1 kB / 211.7 MB, free: 4.051 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.398e-05/0.2593, allocations: 80.66 kB / 211.8 MB, free: 3.957 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.996e-05/0.2593, allocations: 10.89 kB / 211.8 MB, free: 3.953 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.861e-05/0.2594, allocations: 13.41 kB / 211.8 MB, free: 3.949 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/0.2595, allocations: 15 kB / 211.8 MB, free: 3.945 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.872e-05/0.2595, allocations: 4.594 kB / 211.8 MB, free: 3.945 MB / 170.7 MB Notification: Performance of sorting global known variables: time 5.15e-05/0.2596, allocations: 96.78 kB / 211.9 MB, free: 3.871 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.89e-07/0.2596, allocations: 1.531 kB / 211.9 MB, free: 3.871 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0003697/0.26, allocations: 60.69 kB / 212 MB, free: 3.859 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) * 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.0002452/0.2603, allocations: 153.4 kB / 212.1 MB, free: 3.766 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0002962/0.2606, allocations: 323.8 kB / 212.4 MB, free: 3.508 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.638e-06/0.2606, allocations: 1.469 kB / 212.4 MB, free: 3.508 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001552/0.2607, allocations: 184.2 kB / 212.6 MB, free: 3.383 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.2609, allocations: 4.281 kB / 212.6 MB, free: 3.383 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003679/0.2613, allocations: 185.7 kB / 212.8 MB, free: 3.273 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.2616, allocations: 0.7099 MB / 213.5 MB, free: 18.57 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.142e-05/0.2616, allocations: 11.09 kB / 213.5 MB, free: 18.57 MB / 186.7 MB Notification: Performance of SimCode: time 1.305e-06/0.2617, allocations: 0 / 213.5 MB, free: 18.57 MB / 186.7 MB Notification: Performance of Templates: time 0.003707/0.2654, allocations: 1.638 MB / 215.2 MB, free: 18.39 MB / 186.7 MB