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/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.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.019/1.019, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.675e-05/1.683e-05, allocations: 0 / 148.1 MB, free: 6.234 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.047/0.04704, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1756/0.2227, allocations: 33.25 MB / 206.5 MB, free: 7.012 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001615/0.2229, allocations: 56.08 kB / 206.6 MB, free: 7.012 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005963/0.2289, allocations: 1.555 MB / 208.1 MB, free: 6.637 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2289, allocations: 0 / 208.1 MB, free: 6.637 MB / 170.7 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.2289, allocations: 1.156 kB / 208.1 MB, free: 6.637 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.0004363/0.2294, allocations: 422.6 kB / 208.6 MB, free: 6.219 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.2294, allocations: 9.25 kB / 208.6 MB, free: 6.219 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.904e-05/0.2295, allocations: 16.47 kB / 208.6 MB, free: 6.211 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.2296, allocations: 175.8 kB / 208.8 MB, free: 6.008 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.2297, allocations: 2.656 kB / 208.8 MB, free: 6.008 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.2297, allocations: 3.906 kB / 208.8 MB, free: 6.008 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000119/0.2298, allocations: 28.92 kB / 208.8 MB, free: 6.008 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001513/0.23, allocations: 92.08 kB / 208.9 MB, free: 5.938 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.23, allocations: 0 / 208.9 MB, free: 5.938 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.23, allocations: 6.609 kB / 208.9 MB, free: 5.934 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.677e-06/0.2301, allocations: 0 / 208.9 MB, free: 5.934 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003923/0.2305, allocations: 357.5 kB / 209.2 MB, free: 5.598 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001304/0.2306, allocations: 88.64 kB / 209.3 MB, free: 5.523 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.331e-05/0.2307, allocations: 44.5 kB / 209.4 MB, free: 5.496 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.2307, allocations: 5.312 kB / 209.4 MB, free: 5.492 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001925/0.2309, allocations: 138.5 kB / 209.5 MB, free: 5.387 MB / 170.7 MB Notification: Performance of pre-optimization done (n=10): time 2.499e-06/0.2309, allocations: 4 kB / 209.5 MB, free: 5.383 MB / 170.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003256/0.2313, allocations: 121.6 kB / 209.6 MB, free: 5.34 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.2313, allocations: 164.3 kB / 209.8 MB, free: 5.152 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.69e-05/0.2315, allocations: 117.5 kB / 209.9 MB, free: 5.062 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.2315, allocations: 27.08 kB / 209.9 MB, free: 5.031 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.713e-05/0.2315, allocations: 157 kB / 210.1 MB, free: 4.883 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.899e-05/0.2316, allocations: 22 kB / 210.1 MB, free: 4.871 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.839e-06/0.2316, allocations: 1.375 kB / 210.1 MB, free: 4.871 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.059e-05/0.2317, allocations: 325.9 kB / 210.4 MB, free: 4.551 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.352e-05/0.2317, allocations: 25.7 kB / 210.5 MB, free: 4.547 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.294e-05/0.2318, allocations: 49.88 kB / 210.5 MB, free: 4.516 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001127/0.232, allocations: 21.31 kB / 210.5 MB, free: 4.516 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.871e-06/0.232, allocations: 0 / 210.5 MB, free: 4.516 MB / 170.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002805/0.2323, allocations: 114.5 kB / 210.6 MB, free: 4.477 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.017e-05/0.2323, allocations: 60.39 kB / 210.7 MB, free: 4.414 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.971e-06/0.2323, allocations: 1.656 kB / 210.7 MB, free: 4.414 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.2324, allocations: 1.406 kB / 210.7 MB, free: 4.414 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.86e-05/0.2324, allocations: 4.594 kB / 210.7 MB, free: 4.414 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.2325, allocations: 9.484 kB / 210.7 MB, free: 4.406 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.2327, allocations: 11.36 kB / 210.7 MB, free: 4.406 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.354e-05/0.2327, allocations: 9.094 kB / 210.7 MB, free: 4.406 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 () * 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.000137/0.2329, allocations: 152.9 kB / 210.9 MB, free: 4.262 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.462e-05/0.233, allocations: 12.22 kB / 210.9 MB, free: 4.258 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.051e-05/0.233, allocations: 8.672 kB / 210.9 MB, free: 4.25 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.6e-06/0.2331, allocations: 1.188 kB / 210.9 MB, free: 4.25 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.862e-06/0.2331, allocations: 1.125 kB / 210.9 MB, free: 4.25 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.69e-06/0.2331, allocations: 5.078 kB / 210.9 MB, free: 4.246 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002421/0.2334, allocations: 165.4 kB / 211.1 MB, free: 4.09 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.357e-06/0.2334, allocations: 1.156 kB / 211.1 MB, free: 4.09 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.089e-05/0.2334, allocations: 11 kB / 211.1 MB, free: 4.086 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.289e-06/0.2334, allocations: 9.5 kB / 211.1 MB, free: 4.078 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.708e-05/0.2335, allocations: 2.688 kB / 211.1 MB, free: 4.078 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.779e-06/0.2335, allocations: 5.031 kB / 211.1 MB, free: 4.074 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.234e-06/0.2335, allocations: 1.406 kB / 211.1 MB, free: 4.074 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004966/0.234, allocations: 189.1 kB / 211.3 MB, free: 3.953 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.263e-05/0.2341, allocations: 83.73 kB / 211.4 MB, free: 3.855 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.2341, allocations: 8.938 kB / 211.4 MB, free: 3.855 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.2343, allocations: 13.83 kB / 211.4 MB, free: 3.855 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.11e-05/0.2344, allocations: 21.98 kB / 211.4 MB, free: 3.844 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.2344, allocations: 9.406 kB / 211.4 MB, free: 3.844 MB / 170.7 MB Notification: Performance of sorting global known variables: time 6.077e-05/0.2345, allocations: 97.27 kB / 211.5 MB, free: 3.766 MB / 170.7 MB Notification: Performance of sort global known variables: time 7.34e-07/0.2345, allocations: 0 / 211.5 MB, free: 3.766 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.00037/0.2349, allocations: 38.25 kB / 211.5 MB, free: 3.758 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) * 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.0001957/0.2351, allocations: 130.5 kB / 211.7 MB, free: 3.668 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0002573/0.2354, allocations: 180 kB / 211.9 MB, free: 3.539 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.115e-06/0.2354, allocations: 1.562 kB / 211.9 MB, free: 3.539 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.2356, allocations: 113 kB / 212 MB, free: 3.473 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.2358, allocations: 18.55 kB / 212 MB, free: 3.469 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000396/0.2362, allocations: 171.2 kB / 212.1 MB, free: 3.34 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001461/0.2364, allocations: 0.6993 MB / 212.8 MB, free: 2.641 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.394e-05/0.2364, allocations: 12.58 kB / 212.9 MB, free: 2.637 MB / 170.7 MB Notification: Performance of SimCode: time 1.761e-06/0.2364, allocations: 1.25 kB / 212.9 MB, free: 2.637 MB / 170.7 MB Notification: Performance of Templates: time 0.003583/0.24, allocations: 1.367 MB / 214.2 MB, free: 2.516 MB / 170.7 MB