Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.903/1.903, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003572, allocations: 8 kB / 233.8 MB, free: 3.086 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08547/0.08585, allocations: 38.76 MB / 272.5 MB, free: 12.25 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3412/0.4271, allocations: 66.59 MB / 339.1 MB, free: 7.328 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/0.4274, allocations: 69.53 kB / 339.2 MB, free: 7.293 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008087/0.4355, allocations: 1.727 MB / 340.9 MB, free: 5.766 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4356, allocations: 0 / 340.9 MB, free: 5.766 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.4356, allocations: 1.422 kB / 340.9 MB, free: 5.766 MB / 266.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.0006698/0.4363, allocations: 445.7 kB / 341.4 MB, free: 5.277 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.4363, allocations: 8.031 kB / 341.4 MB, free: 5.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.885e-05/0.4364, allocations: 7.906 kB / 341.4 MB, free: 5.262 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.4366, allocations: 182.4 kB / 341.5 MB, free: 5.047 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.4366, allocations: 0 / 341.5 MB, free: 5.047 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.4367, allocations: 4 kB / 341.6 MB, free: 5.043 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002588/0.4369, allocations: 95.75 kB / 341.6 MB, free: 4.945 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.4369, allocations: 0 / 341.6 MB, free: 4.945 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.437, allocations: 4 kB / 341.7 MB, free: 4.941 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.437, allocations: 0 / 341.7 MB, free: 4.941 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.4372, allocations: 50.72 kB / 341.7 MB, free: 4.902 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005533/0.4378, allocations: 396.5 kB / 342.1 MB, free: 4.477 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002441/0.438, allocations: 90.83 kB / 342.2 MB, free: 4.371 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.4381, allocations: 11.92 kB / 342.2 MB, free: 4.363 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003053/0.4384, allocations: 145.3 kB / 342.3 MB, free: 4.207 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 4.538e-06/0.4384, allocations: 3.984 kB / 342.3 MB, free: 4.203 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.000665/0.4391, allocations: 276.6 kB / 342.6 MB, free: 3.938 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.4392, allocations: 162.2 kB / 342.8 MB, free: 3.742 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.4394, allocations: 141.2 kB / 342.9 MB, free: 3.605 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.4394, allocations: 25.7 kB / 342.9 MB, free: 3.574 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.251e-05/0.4395, allocations: 161.7 kB / 343.1 MB, free: 3.418 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.04e-05/0.4396, allocations: 26.77 kB / 343.1 MB, free: 3.395 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.696e-06/0.4396, allocations: 0 / 343.1 MB, free: 3.395 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.4397, allocations: 318.6 kB / 343.4 MB, free: 3.078 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.4398, allocations: 26.8 kB / 343.4 MB, free: 3.059 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.44, allocations: 58.72 kB / 343.5 MB, free: 3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.4401, allocations: 88.62 kB / 343.6 MB, free: 2.914 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.4402, allocations: 7.953 kB / 343.6 MB, free: 2.906 MB / 266.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004051/0.4406, allocations: 182.4 kB / 343.8 MB, free: 2.734 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.384e-05/0.4407, allocations: 64.48 kB / 343.8 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4407, allocations: 0 / 343.8 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.4407, allocations: 4 kB / 343.8 MB, free: 2.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.097e-05/0.4408, allocations: 3.938 kB / 343.8 MB, free: 2.652 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.4408, allocations: 8.047 kB / 343.9 MB, free: 2.645 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.441, allocations: 19.42 kB / 343.9 MB, free: 2.629 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/0.441, allocations: 4.375 kB / 343.9 MB, free: 2.625 MB / 266.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.0001626/0.4412, allocations: 154.5 kB / 344 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.845e-05/0.4412, allocations: 15.86 kB / 344 MB, free: 2.449 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.662e-05/0.4413, allocations: 11.94 kB / 344.1 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.4413, allocations: 0 / 344.1 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.4413, allocations: 8 kB / 344.1 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.4413, allocations: 0 / 344.1 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002299/0.4416, allocations: 198.7 kB / 344.3 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.4416, allocations: 0 / 344.3 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.842e-05/0.4416, allocations: 7.891 kB / 344.3 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.4416, allocations: 4 kB / 344.3 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.4417, allocations: 3.5 kB / 344.3 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.4417, allocations: 4 kB / 344.3 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.4417, allocations: 3.984 kB / 344.3 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004586/0.4422, allocations: 217 kB / 344.5 MB, free: 1.965 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.813e-05/0.4422, allocations: 88.95 kB / 344.6 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.161e-05/0.4423, allocations: 11.64 kB / 344.6 MB, free: 1.852 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.4425, allocations: 15.98 kB / 344.6 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.933e-05/0.4426, allocations: 11.98 kB / 344.6 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.4426, allocations: 11.23 kB / 344.6 MB, free: 1.816 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.43e-05/0.4427, allocations: 99.14 kB / 344.7 MB, free: 1.727 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.4427, allocations: 0 / 344.7 MB, free: 1.727 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003445/0.4431, allocations: 35.94 kB / 344.8 MB, free: 1.691 MB / 266.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.0002434/0.4433, allocations: 126.5 kB / 344.9 MB, free: 1.559 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004234/0.4438, allocations: 203.4 kB / 345.1 MB, free: 1.359 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4438, allocations: 0 / 345.1 MB, free: 1.359 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002282/0.444, allocations: 120.1 kB / 345.2 MB, free: 1.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.4443, allocations: 15.8 kB / 345.2 MB, free: 1.238 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005875/0.4449, allocations: 253.1 kB / 345.5 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.4452, allocations: 0.6965 MB / 346.2 MB, free: 260 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.119e-05/0.4452, allocations: 11.44 kB / 346.2 MB, free: 252 kB / 266.7 MB Notification: Performance of SimCode: time 6.92e-07/0.4453, allocations: 0 / 346.2 MB, free: 252 kB / 266.7 MB Notification: Performance of Templates: time 0.004309/0.4496, allocations: 1.345 MB / 347.5 MB, free: 14.91 MB / 282.7 MB