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.ShowLogicalSources.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.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.228/1.228, allocations: 111.1 MB / 126.7 MB, free: 6.121 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002654, allocations: 4 kB / 158.3 MB, free: 15.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04556/0.04585, allocations: 25.17 MB / 183.5 MB, free: 5.961 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2139/0.2598, allocations: 34.01 MB / 217.5 MB, free: 6.645 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001695/0.26, allocations: 60 kB / 217.6 MB, free: 6.637 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005659/0.2657, allocations: 1.563 MB / 219.1 MB, free: 5.871 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2657, allocations: 0 / 219.1 MB, free: 5.871 MB / 170.7 MB Notification: Performance of Transformations before backend: time 7.842e-06/0.2657, allocations: 3.844 kB / 219.1 MB, free: 5.871 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004286/0.2662, allocations: 444.9 kB / 219.6 MB, free: 5.422 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.2662, allocations: 7.812 kB / 219.6 MB, free: 5.422 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.429e-05/0.2663, allocations: 11.77 kB / 219.6 MB, free: 5.414 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.533e-05/0.2664, allocations: 174.1 kB / 219.7 MB, free: 5.215 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.2664, allocations: 0 / 219.7 MB, free: 5.215 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.919e-05/0.2664, allocations: 3.844 kB / 219.8 MB, free: 5.215 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.2666, allocations: 102.4 kB / 219.9 MB, free: 5.137 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.4e-06/0.2667, allocations: 4 kB / 219.9 MB, free: 5.133 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.2667, allocations: 0 / 219.9 MB, free: 5.133 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.77e-06/0.2667, allocations: 3.953 kB / 219.9 MB, free: 5.129 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001413/0.2669, allocations: 49.19 kB / 219.9 MB, free: 5.117 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003824/0.2672, allocations: 382.9 kB / 220.3 MB, free: 4.727 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001621/0.2674, allocations: 100.2 kB / 220.4 MB, free: 4.641 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.2675, allocations: 3.812 kB / 220.4 MB, free: 4.641 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000219/0.2677, allocations: 147.2 kB / 220.5 MB, free: 4.516 MB / 170.7 MB Notification: Performance of pre-optimization done (n=10): time 2.368e-06/0.2677, allocations: 0 / 220.5 MB, free: 4.516 MB / 170.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005039/0.2682, allocations: 279.7 kB / 220.8 MB, free: 4.328 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.2683, allocations: 169 kB / 221 MB, free: 4.133 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.411e-05/0.2684, allocations: 128 kB / 221.1 MB, free: 4.027 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.2684, allocations: 33.42 kB / 221.1 MB, free: 3.996 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.955e-05/0.2685, allocations: 154.2 kB / 221.3 MB, free: 3.844 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.968e-05/0.2685, allocations: 26.75 kB / 221.3 MB, free: 3.828 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.467e-06/0.2686, allocations: 3.688 kB / 221.3 MB, free: 3.828 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 4.888e-05/0.2686, allocations: 314.7 kB / 221.6 MB, free: 3.516 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.076e-05/0.2687, allocations: 26.48 kB / 221.6 MB, free: 3.512 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.728e-05/0.2688, allocations: 61.75 kB / 221.7 MB, free: 3.469 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.2689, allocations: 86.25 kB / 221.8 MB, free: 3.398 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.799e-06/0.269, allocations: 0 / 221.8 MB, free: 3.398 MB / 170.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000315/0.2693, allocations: 187.7 kB / 222 MB, free: 3.285 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.436e-05/0.2693, allocations: 55.38 kB / 222 MB, free: 3.223 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.893e-06/0.2694, allocations: 7.938 kB / 222 MB, free: 3.219 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.2694, allocations: 3.953 kB / 222 MB, free: 3.215 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.498e-05/0.2694, allocations: 4.719 kB / 222 MB, free: 3.215 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.531e-06/0.2694, allocations: 3.984 kB / 222 MB, free: 3.211 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.2696, allocations: 19.28 kB / 222.1 MB, free: 3.207 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.2696, allocations: 3.844 kB / 222.1 MB, free: 3.207 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,step.y,pulse.y,$PRE.pulse.pulsStart,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,$PRE.table.y,table.y,$PRE.table.nextTime,table.nextTime,$PRE.table.index,table.index) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * 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 prepare postOptimizeDAE: time 0.0001048/0.2697, allocations: 157.4 kB / 222.2 MB, free: 3.055 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.2698, allocations: 15.59 kB / 222.2 MB, free: 3.047 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.725e-05/0.2698, allocations: 15.05 kB / 222.2 MB, free: 3.039 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2698, allocations: 7.797 kB / 222.3 MB, free: 3.035 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2698, allocations: 384 / 222.3 MB, free: 3.035 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.364e-06/0.2698, allocations: 0 / 222.3 MB, free: 3.035 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/0.27, allocations: 198.3 kB / 222.4 MB, free: 2.824 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.569e-06/0.27, allocations: 4 kB / 222.5 MB, free: 2.82 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.137e-05/0.27, allocations: 0 / 222.5 MB, free: 2.82 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.2701, allocations: 3.844 kB / 222.5 MB, free: 2.82 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.2701, allocations: 7.031 kB / 222.5 MB, free: 2.82 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.577e-06/0.2701, allocations: 4 kB / 222.5 MB, free: 2.816 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.882e-06/0.2701, allocations: 3.953 kB / 222.5 MB, free: 2.812 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003508/0.2705, allocations: 236.7 kB / 222.7 MB, free: 2.652 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.992e-05/0.2705, allocations: 92.84 kB / 222.8 MB, free: 2.547 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.614e-05/0.2706, allocations: 7.797 kB / 222.8 MB, free: 2.543 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.2707, allocations: 14.95 kB / 222.8 MB, free: 2.539 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.361e-05/0.2708, allocations: 10.89 kB / 222.8 MB, free: 2.535 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.2708, allocations: 7.812 kB / 222.8 MB, free: 2.531 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.125e-05/0.2709, allocations: 107 kB / 222.9 MB, free: 2.449 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.2709, allocations: 0 / 222.9 MB, free: 2.449 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0003328/0.2712, allocations: 41.05 kB / 223 MB, free: 2.441 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,step.y,pulse.y,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,table.y,table.nextTime,table.index) * Number of discrete states: 4 (table.y,table.nextTime,table.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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.0001723/0.2714, allocations: 137 kB / 223.1 MB, free: 2.336 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0002995/0.2717, allocations: 197.8 kB / 223.3 MB, free: 2.199 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.611e-06/0.2718, allocations: 3.938 kB / 223.3 MB, free: 2.195 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.2719, allocations: 119.2 kB / 223.4 MB, free: 2.121 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002128/0.2722, allocations: 22.48 kB / 223.4 MB, free: 2.113 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004233/0.2726, allocations: 243.3 kB / 223.7 MB, free: 1.914 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001294/0.2728, allocations: 0.6998 MB / 224.4 MB, free: 1.203 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.924e-05/0.2728, allocations: 11.28 kB / 224.4 MB, free: 1.199 MB / 170.7 MB Notification: Performance of SimCode: time 1.331e-06/0.2728, allocations: 3.781 kB / 224.4 MB, free: 1.199 MB / 170.7 MB Notification: Performance of Templates: time 0.003219/0.276, allocations: 1.357 MB / 225.8 MB, free: 0.5195 MB / 170.7 MB