Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 2.172/2.172, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005094/0.0005096, allocations: 12 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1239, allocations: 44.51 MB / 309 MB, free: 388 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4976/0.6216, allocations: 71.9 MB / 380.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003847/0.622, allocations: 69.27 kB / 381 MB, free: 15.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01251/0.6346, allocations: 1.719 MB / 382.7 MB, free: 15.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.897e-06/0.6346, allocations: 2.953 kB / 382.7 MB, free: 15.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.6347, allocations: 5.625 kB / 382.7 MB, free: 15.06 MB / 314.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.0008426/0.6355, allocations: 439.5 kB / 383.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/0.6356, allocations: 10.95 kB / 383.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.586e-05/0.6357, allocations: 8.281 kB / 383.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001656/0.6359, allocations: 190.8 kB / 383.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/0.6359, allocations: 1.469 kB / 383.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.969e-05/0.636, allocations: 4.188 kB / 383.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003876/0.6364, allocations: 97.22 kB / 383.5 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.6365, allocations: 6.5 kB / 383.5 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/0.6365, allocations: 1.438 kB / 383.5 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.6365, allocations: 1.312 kB / 383.5 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002775/0.6368, allocations: 43.62 kB / 383.5 MB, free: 14.33 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007083/0.6376, allocations: 392.4 kB / 383.9 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000301/0.6379, allocations: 97.55 kB / 384 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.667e-05/0.638, allocations: 5.75 kB / 384 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004045/0.6384, allocations: 147.1 kB / 384.2 MB, free: 13.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 4.9e-06/0.6384, allocations: 0 / 384.2 MB, free: 13.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0009457/0.6394, allocations: 276.1 kB / 384.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.669e-05/0.6395, allocations: 167.5 kB / 384.6 MB, free: 13.42 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.6397, allocations: 141.2 kB / 384.7 MB, free: 13.31 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/0.6398, allocations: 29.77 kB / 384.8 MB, free: 13.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.608e-05/0.6398, allocations: 91.98 kB / 384.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.579e-05/0.6399, allocations: 16.44 kB / 384.9 MB, free: 13.19 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.634e-05/0.6399, allocations: 1.375 kB / 384.9 MB, free: 13.19 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.958e-05/0.64, allocations: 329.9 kB / 385.2 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.6402, allocations: 27.97 kB / 385.2 MB, free: 12.87 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.6404, allocations: 57.45 kB / 385.3 MB, free: 12.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.6406, allocations: 84.2 kB / 385.3 MB, free: 12.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.6407, allocations: 0 / 385.3 MB, free: 12.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006027/0.6413, allocations: 190.5 kB / 385.5 MB, free: 12.67 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.652e-05/0.6414, allocations: 64.97 kB / 385.6 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.6414, allocations: 1.375 kB / 385.6 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.6414, allocations: 1.375 kB / 385.6 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.824e-05/0.6415, allocations: 8.062 kB / 385.6 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.6416, allocations: 7.312 kB / 385.6 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.6418, allocations: 15.56 kB / 385.6 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.842e-05/0.6418, allocations: 7.078 kB / 385.6 MB, free: 12.59 MB / 314.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.0002387/0.6421, allocations: 161.4 kB / 385.8 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.981e-05/0.6422, allocations: 9.406 kB / 385.8 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.667e-05/0.6422, allocations: 10.62 kB / 385.8 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.6423, allocations: 7.891 kB / 385.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.6423, allocations: 1.375 kB / 385.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.6423, allocations: 1.375 kB / 385.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002844/0.6426, allocations: 202.4 kB / 386 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.6426, allocations: 1.375 kB / 386 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.613e-05/0.6427, allocations: 1.375 kB / 386 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.6427, allocations: 5.375 kB / 386 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.6427, allocations: 6.375 kB / 386 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.6427, allocations: 1.375 kB / 386 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.6428, allocations: 1.375 kB / 386 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006199/0.6434, allocations: 215.5 kB / 386.3 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.154e-05/0.6435, allocations: 90.72 kB / 386.3 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/0.6435, allocations: 11.08 kB / 386.4 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.6438, allocations: 14.5 kB / 386.4 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.246e-05/0.6439, allocations: 12.39 kB / 386.4 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/0.6439, allocations: 4.094 kB / 386.4 MB, free: 12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001068/0.644, allocations: 107.7 kB / 386.5 MB, free: 11.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.6441, allocations: 0 / 386.5 MB, free: 11.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005912/0.6447, allocations: 34.88 kB / 386.5 MB, free: 11.93 MB / 314.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.0003055/0.645, allocations: 133.5 kB / 386.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005489/0.6456, allocations: 206.4 kB / 386.9 MB, free: 11.69 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.6456, allocations: 0 / 386.9 MB, free: 11.69 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003009/0.6459, allocations: 112.5 kB / 387 MB, free: 11.63 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.6463, allocations: 22.67 kB / 387 MB, free: 11.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000789/0.6472, allocations: 221.3 kB / 387.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.6474, allocations: 0.7038 MB / 387.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.176e-05/0.6475, allocations: 8.281 kB / 387.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.381e-05/0.6475, allocations: 10.78 kB / 387.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of SimCode: time 1.323e-06/0.6476, allocations: 0 / 387.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of Templates: time 0.00717/0.6547, allocations: 1.18 MB / 389.1 MB, free: 10.65 MB / 314.7 MB