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 0.9845/0.9845, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.003e-05/2.014e-05, allocations: 0 / 154.3 MB, free: 13.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1365, allocations: 25.14 MB / 179.4 MB, free: 0.7891 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05122/0.1877, allocations: 33.93 MB / 213.3 MB, free: 15.18 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.188, allocations: 55.97 kB / 213.4 MB, free: 15.12 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006586/0.1946, allocations: 1.565 MB / 215 MB, free: 13.56 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.885e-06/0.1946, allocations: 0 / 215 MB, free: 13.56 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.1946, allocations: 4 kB / 215 MB, free: 13.55 MB / 186.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.0005493/0.1952, allocations: 421.8 kB / 215.4 MB, free: 13.09 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.1953, allocations: 8.031 kB / 215.4 MB, free: 13.08 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.446e-05/0.1953, allocations: 11.86 kB / 215.4 MB, free: 13.07 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.1955, allocations: 183 kB / 215.6 MB, free: 12.85 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.1955, allocations: 0 / 215.6 MB, free: 12.85 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.384e-05/0.1956, allocations: 4 kB / 215.6 MB, free: 12.84 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002192/0.1958, allocations: 89.11 kB / 215.7 MB, free: 12.74 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.825e-06/0.1958, allocations: 0 / 215.7 MB, free: 12.74 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.568e-05/0.1959, allocations: 4 kB / 215.7 MB, free: 12.73 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.208e-06/0.1959, allocations: 7.891 kB / 215.7 MB, free: 12.73 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001148/0.196, allocations: 39.98 kB / 215.7 MB, free: 12.69 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000552/0.1966, allocations: 386.7 kB / 216.1 MB, free: 12.25 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.1968, allocations: 95.8 kB / 216.2 MB, free: 12.13 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.656e-05/0.1969, allocations: 42.58 kB / 216.2 MB, free: 12.08 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.1969, allocations: 4 kB / 216.2 MB, free: 12.07 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.1972, allocations: 143.6 kB / 216.4 MB, free: 11.91 MB / 186.7 MB Notification: Performance of pre-optimization done (n=10): time 2.487e-06/0.1972, allocations: 0 / 216.4 MB, free: 11.91 MB / 186.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003957/0.1976, allocations: 163.2 kB / 216.5 MB, free: 11.73 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.1978, allocations: 166.2 kB / 216.7 MB, free: 11.54 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.1979, allocations: 119.9 kB / 216.8 MB, free: 11.41 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/0.198, allocations: 41.62 kB / 216.9 MB, free: 11.36 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.701e-05/0.1981, allocations: 154.8 kB / 217 MB, free: 11.21 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.1981, allocations: 19.72 kB / 217 MB, free: 11.19 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.216e-05/0.1982, allocations: 8.062 kB / 217 MB, free: 11.18 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.1983, allocations: 314.8 kB / 217.3 MB, free: 10.86 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.59e-05/0.1984, allocations: 23.98 kB / 217.4 MB, free: 10.84 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.64e-05/0.1985, allocations: 55.36 kB / 217.4 MB, free: 10.77 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/0.1987, allocations: 84.7 kB / 217.5 MB, free: 10.68 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.091e-06/0.1987, allocations: 0 / 217.5 MB, free: 10.68 MB / 186.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003371/0.199, allocations: 177 kB / 217.7 MB, free: 10.49 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.09e-05/0.1991, allocations: 59.39 kB / 217.7 MB, free: 10.42 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.1991, allocations: 7.953 kB / 217.7 MB, free: 10.41 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.1992, allocations: 192 / 217.7 MB, free: 10.41 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.305e-05/0.1992, allocations: 11.94 kB / 217.7 MB, free: 10.4 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.181e-06/0.1992, allocations: 0 / 217.7 MB, free: 10.4 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.1994, allocations: 19.98 kB / 217.8 MB, free: 10.38 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.97e-05/0.1994, allocations: 4 kB / 217.8 MB, free: 10.38 MB / 186.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.0001423/0.1996, allocations: 154.7 kB / 217.9 MB, free: 10.21 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.833e-05/0.1996, allocations: 11.91 kB / 217.9 MB, free: 10.2 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.57e-05/0.1997, allocations: 8.094 kB / 217.9 MB, free: 10.19 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.1997, allocations: 11.89 kB / 218 MB, free: 10.18 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.254e-06/0.1997, allocations: 0 / 218 MB, free: 10.18 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.592e-06/0.1997, allocations: 0 / 218 MB, free: 10.18 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002461/0.2, allocations: 201.5 kB / 218.2 MB, free: 9.93 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.672e-06/0.2, allocations: 0 / 218.2 MB, free: 9.93 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.451e-05/0.2, allocations: 4 kB / 218.2 MB, free: 9.926 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.177e-06/0.2001, allocations: 7.938 kB / 218.2 MB, free: 9.918 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.2001, allocations: 0 / 218.2 MB, free: 9.918 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.183e-06/0.2001, allocations: 4 kB / 218.2 MB, free: 9.914 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.365e-06/0.2001, allocations: 3.953 kB / 218.2 MB, free: 9.91 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004043/0.2005, allocations: 231.8 kB / 218.4 MB, free: 9.641 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.588e-05/0.2006, allocations: 84.97 kB / 218.5 MB, free: 9.539 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.727e-05/0.2007, allocations: 7.984 kB / 218.5 MB, free: 9.531 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001364/0.2008, allocations: 19.98 kB / 218.5 MB, free: 9.512 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.028e-05/0.2009, allocations: 7.984 kB / 218.5 MB, free: 9.504 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.2009, allocations: 4 kB / 218.5 MB, free: 9.5 MB / 186.7 MB Notification: Performance of sorting global known variables: time 9.867e-05/0.201, allocations: 104.2 kB / 218.6 MB, free: 9.398 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.56e-07/0.201, allocations: 7.938 kB / 218.6 MB, free: 9.391 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003519/0.2014, allocations: 40 kB / 218.7 MB, free: 9.352 MB / 186.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.0002264/0.2016, allocations: 120.8 kB / 218.8 MB, free: 9.223 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003304/0.202, allocations: 194.7 kB / 219 MB, free: 9.008 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.19e-06/0.202, allocations: 0 / 219 MB, free: 9.008 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.2022, allocations: 119.3 kB / 219.1 MB, free: 8.879 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.2025, allocations: 16.25 kB / 219.1 MB, free: 8.863 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004403/0.2029, allocations: 180.6 kB / 219.3 MB, free: 8.656 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.2033, allocations: 0.7004 MB / 220 MB, free: 7.93 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.638e-05/0.2034, allocations: 11.44 kB / 220 MB, free: 7.922 MB / 186.7 MB Notification: Performance of SimCode: time 1.602e-06/0.2034, allocations: 0 / 220 MB, free: 7.922 MB / 186.7 MB Notification: Performance of Templates: time 0.003619/0.207, allocations: 1.367 MB / 221.4 MB, free: 6.555 MB / 186.7 MB