Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.201/1.201, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002586/0.0002587, allocations: 4 kB / 158.9 MB, free: 15.24 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05508/0.05536, allocations: 25.16 MB / 184 MB, free: 6.031 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2427/0.2982, allocations: 33.8 MB / 217.8 MB, free: 6.672 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.2984, allocations: 61.34 kB / 217.9 MB, free: 6.664 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00962/0.3081, allocations: 1.972 MB / 219.9 MB, free: 5.703 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3081, allocations: 0 / 219.9 MB, free: 5.703 MB / 170.7 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.3082, allocations: 0 / 219.9 MB, free: 5.703 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.0004761/0.3086, allocations: 0.495 MB / 220.4 MB, free: 5.18 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3087, allocations: 11.69 kB / 220.4 MB, free: 5.18 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.997e-05/0.3088, allocations: 11.34 kB / 220.4 MB, free: 5.176 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.3089, allocations: 174.7 kB / 220.5 MB, free: 4.969 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.3089, allocations: 7.156 kB / 220.6 MB, free: 4.969 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.3089, allocations: 7.406 kB / 220.6 MB, free: 4.969 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002438/0.3092, allocations: 95.64 kB / 220.7 MB, free: 4.922 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3092, allocations: 3.938 kB / 220.7 MB, free: 4.918 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.3092, allocations: 0 / 220.7 MB, free: 4.918 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.3093, allocations: 7.828 kB / 220.7 MB, free: 4.914 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.3094, allocations: 45.86 kB / 220.7 MB, free: 4.91 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005205/0.3099, allocations: 348.8 kB / 221.1 MB, free: 4.598 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001693/0.3101, allocations: 71.17 kB / 221.1 MB, free: 4.566 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-06/0.3102, allocations: 0 / 221.1 MB, free: 4.566 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002448/0.3104, allocations: 168.3 kB / 221.3 MB, free: 4.43 MB / 170.7 MB Notification: Performance of pre-optimization done (n=11): time 1.983e-06/0.3104, allocations: 4 kB / 221.3 MB, free: 4.426 MB / 170.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006013/0.311, allocations: 417.4 kB / 221.7 MB, free: 4.117 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.67e-05/0.3111, allocations: 165.2 kB / 221.9 MB, free: 3.93 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.3112, allocations: 134.3 kB / 222 MB, free: 3.816 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.3113, allocations: 28.33 kB / 222 MB, free: 3.785 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.87e-05/0.3113, allocations: 168.2 kB / 222.2 MB, free: 3.629 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.3114, allocations: 22.7 kB / 222.2 MB, free: 3.617 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.248e-06/0.3114, allocations: 3.844 kB / 222.2 MB, free: 3.617 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.849e-05/0.3115, allocations: 322.3 kB / 222.5 MB, free: 3.297 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.459e-05/0.3116, allocations: 33.27 kB / 222.6 MB, free: 3.293 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.316e-05/0.3117, allocations: 47.19 kB / 222.6 MB, free: 3.281 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001235/0.3118, allocations: 144.9 kB / 222.7 MB, free: 3.148 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3118, allocations: 0 / 222.7 MB, free: 3.148 MB / 170.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003672/0.3122, allocations: 267.3 kB / 223 MB, free: 2.973 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.184e-05/0.3123, allocations: 118.3 kB / 223.1 MB, free: 2.844 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.3123, allocations: 1.875 kB / 223.1 MB, free: 2.844 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3123, allocations: 0 / 223.1 MB, free: 2.844 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.334e-05/0.3124, allocations: 7.797 kB / 223.1 MB, free: 2.84 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.3124, allocations: 7.984 kB / 223.1 MB, free: 2.832 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.3125, allocations: 7.781 kB / 223.1 MB, free: 2.828 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.3125, allocations: 7.688 kB / 223.2 MB, free: 2.828 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.0001462/0.3127, allocations: 198.8 kB / 223.3 MB, free: 2.637 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.04e-05/0.3127, allocations: 15.55 kB / 223.4 MB, free: 2.629 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.42e-05/0.3128, allocations: 12.03 kB / 223.4 MB, free: 2.621 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3128, allocations: 0 / 223.4 MB, free: 2.621 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3128, allocations: 7.938 kB / 223.4 MB, free: 2.613 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3128, allocations: 0 / 223.4 MB, free: 2.613 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.313, allocations: 207.1 kB / 223.6 MB, free: 2.398 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.313, allocations: 0 / 223.6 MB, free: 2.398 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.874e-06/0.313, allocations: 0 / 223.6 MB, free: 2.398 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.313, allocations: 3.953 kB / 223.6 MB, free: 2.395 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.3131, allocations: 8.656 kB / 223.6 MB, free: 2.395 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3131, allocations: 0 / 223.6 MB, free: 2.395 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3131, allocations: 3.844 kB / 223.6 MB, free: 2.395 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004265/0.3135, allocations: 278.7 kB / 223.9 MB, free: 2.242 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.855e-05/0.3136, allocations: 88.53 kB / 224 MB, free: 2.141 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.371e-05/0.3136, allocations: 7.859 kB / 224 MB, free: 2.137 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.3137, allocations: 7.438 kB / 224 MB, free: 2.137 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.173e-05/0.3138, allocations: 11.64 kB / 224 MB, free: 2.133 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.3138, allocations: 7.828 kB / 224 MB, free: 2.129 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.307e-05/0.3139, allocations: 100.3 kB / 224.1 MB, free: 2.051 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3139, allocations: 3.938 kB / 224.1 MB, free: 2.047 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0003919/0.3143, allocations: 61.34 kB / 224.2 MB, free: 2.039 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.0002757/0.3146, allocations: 157.1 kB / 224.3 MB, free: 1.934 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004162/0.315, allocations: 328.3 kB / 224.6 MB, free: 1.668 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3151, allocations: 0 / 224.6 MB, free: 1.668 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001938/0.3153, allocations: 199.1 kB / 224.8 MB, free: 1.531 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001463/0.3154, allocations: 6.953 kB / 224.8 MB, free: 1.531 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005665/0.316, allocations: 287.7 kB / 225.1 MB, free: 1.316 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001518/0.3162, allocations: 0.6997 MB / 225.8 MB, free: 0.6094 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.286e-05/0.3162, allocations: 11.31 kB / 225.8 MB, free: 0.6055 MB / 170.7 MB Notification: Performance of SimCode: time 1.022e-06/0.3162, allocations: 7.938 kB / 225.8 MB, free: 0.5977 MB / 170.7 MB Notification: Performance of Templates: time 0.004511/0.3207, allocations: 1.613 MB / 227.4 MB, free: 15.8 MB / 186.7 MB