Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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.088/1.088, allocations: 111.1 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002654/0.0002655, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05747/0.05777, allocations: 25.16 MB / 184 MB, free: 6.023 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2143/0.2722, allocations: 34 MB / 218 MB, free: 6.66 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.2725, allocations: 64.06 kB / 218.1 MB, free: 6.652 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006898/0.2794, allocations: 1.563 MB / 219.6 MB, free: 5.895 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.2795, allocations: 0 / 219.6 MB, free: 5.895 MB / 170.7 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.2795, allocations: 4 kB / 219.7 MB, free: 5.891 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.0006296/0.2801, allocations: 445.9 kB / 220.1 MB, free: 5.441 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.2802, allocations: 7.688 kB / 220.1 MB, free: 5.441 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.778e-05/0.2802, allocations: 15.58 kB / 220.1 MB, free: 5.434 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.2804, allocations: 166.9 kB / 220.3 MB, free: 5.234 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.2804, allocations: 3.875 kB / 220.3 MB, free: 5.234 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.741e-05/0.2805, allocations: 7.281 kB / 220.3 MB, free: 5.234 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/0.2807, allocations: 97.62 kB / 220.4 MB, free: 5.148 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.2807, allocations: 3.938 kB / 220.4 MB, free: 5.145 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.2808, allocations: 6.656 kB / 220.4 MB, free: 5.145 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2808, allocations: 3.953 kB / 220.4 MB, free: 5.141 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.281, allocations: 39.81 kB / 220.4 MB, free: 5.133 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004796/0.2815, allocations: 387 kB / 220.8 MB, free: 4.738 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.2817, allocations: 102.3 kB / 220.9 MB, free: 4.652 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.2817, allocations: 0 / 220.9 MB, free: 4.652 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.282, allocations: 149.1 kB / 221.1 MB, free: 4.527 MB / 170.7 MB Notification: Performance of pre-optimization done (n=10): time 2.004e-06/0.282, allocations: 0 / 221.1 MB, free: 4.527 MB / 170.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005822/0.2826, allocations: 286.3 kB / 221.3 MB, free: 4.336 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.2827, allocations: 161.7 kB / 221.5 MB, free: 4.148 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.2828, allocations: 136.6 kB / 221.6 MB, free: 4.035 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.2828, allocations: 33.48 kB / 221.7 MB, free: 4.004 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.628e-05/0.2829, allocations: 157.5 kB / 221.8 MB, free: 3.852 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.203e-05/0.2829, allocations: 22.92 kB / 221.8 MB, free: 3.836 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.636e-06/0.283, allocations: 0 / 221.8 MB, free: 3.836 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.934e-05/0.283, allocations: 321.8 kB / 222.1 MB, free: 3.52 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.2831, allocations: 30.33 kB / 222.2 MB, free: 3.512 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.2833, allocations: 64.66 kB / 222.2 MB, free: 3.469 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.2834, allocations: 90.84 kB / 222.3 MB, free: 3.398 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.2834, allocations: 4 kB / 222.3 MB, free: 3.395 MB / 170.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003707/0.2838, allocations: 179.2 kB / 222.5 MB, free: 3.285 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.491e-05/0.2839, allocations: 62.88 kB / 222.6 MB, free: 3.223 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.2839, allocations: 4.516 kB / 222.6 MB, free: 3.219 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.2839, allocations: 0 / 222.6 MB, free: 3.219 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-05/0.284, allocations: 11.77 kB / 222.6 MB, free: 3.211 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.284, allocations: 3.844 kB / 222.6 MB, free: 3.211 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001553/0.2842, allocations: 15.69 kB / 222.6 MB, free: 3.203 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/0.2842, allocations: 4.719 kB / 222.6 MB, free: 3.203 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.0001308/0.2844, allocations: 156.9 kB / 222.8 MB, free: 3.055 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.396e-05/0.2844, allocations: 11.59 kB / 222.8 MB, free: 3.051 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.312e-05/0.2845, allocations: 15.83 kB / 222.8 MB, free: 3.039 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.2845, allocations: 3.953 kB / 222.8 MB, free: 3.035 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.2845, allocations: 0 / 222.8 MB, free: 3.035 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2845, allocations: 3.844 kB / 222.8 MB, free: 3.035 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00018/0.2847, allocations: 197 kB / 223 MB, free: 2.82 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.2847, allocations: 384 / 223 MB, free: 2.82 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.537e-05/0.2847, allocations: 7.781 kB / 223 MB, free: 2.816 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2848, allocations: 0 / 223 MB, free: 2.816 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.2848, allocations: 11.38 kB / 223 MB, free: 2.812 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.2848, allocations: 0 / 223 MB, free: 2.812 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.2848, allocations: 3.953 kB / 223 MB, free: 2.809 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004057/0.2852, allocations: 219.4 kB / 223.2 MB, free: 2.676 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.454e-05/0.2853, allocations: 85 kB / 223.3 MB, free: 2.574 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.2853, allocations: 3.844 kB / 223.3 MB, free: 2.574 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.2855, allocations: 18.14 kB / 223.3 MB, free: 2.57 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.985e-05/0.2856, allocations: 18.38 kB / 223.4 MB, free: 2.559 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.2856, allocations: 6.469 kB / 223.4 MB, free: 2.559 MB / 170.7 MB Notification: Performance of sorting global known variables: time 7.346e-05/0.2857, allocations: 112.2 kB / 223.5 MB, free: 2.469 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2857, allocations: 0 / 223.5 MB, free: 2.469 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0003365/0.286, allocations: 33.16 kB / 223.5 MB, free: 2.469 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.0002098/0.2862, allocations: 135.5 kB / 223.6 MB, free: 2.367 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003559/0.2866, allocations: 197.6 kB / 223.8 MB, free: 2.23 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.2866, allocations: 3.938 kB / 223.8 MB, free: 2.227 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001928/0.2868, allocations: 127 kB / 224 MB, free: 2.148 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.2871, allocations: 15.39 kB / 224 MB, free: 2.145 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005066/0.2876, allocations: 244 kB / 224.2 MB, free: 1.945 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/0.2878, allocations: 0.7023 MB / 224.9 MB, free: 1.238 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.722e-05/0.2878, allocations: 11.31 kB / 224.9 MB, free: 1.234 MB / 170.7 MB Notification: Performance of SimCode: time 7.71e-07/0.2878, allocations: 0 / 224.9 MB, free: 1.234 MB / 170.7 MB Notification: Performance of Templates: time 0.003961/0.2918, allocations: 1.36 MB / 226.3 MB, free: 0.5547 MB / 170.7 MB