Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.ShowLogicalSources.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.767/1.767, allocations: 194.9 MB / 211.7 MB, free: 2.973 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003792/0.0003794, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07707/0.07748, allocations: 44.52 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3269/0.4044, allocations: 71.9 MB / 380.3 MB, free: 18.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001919/0.4046, allocations: 65.67 kB / 380.4 MB, free: 18.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006685/0.4113, allocations: 1.722 MB / 382.1 MB, free: 18.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.429e-06/0.4114, allocations: 6.844 kB / 382.1 MB, free: 18.42 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.4114, allocations: 1.469 kB / 382.1 MB, free: 18.42 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.0004337/0.4118, allocations: 437 kB / 382.6 MB, free: 17.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.4119, allocations: 9 kB / 382.6 MB, free: 17.99 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.093e-05/0.4119, allocations: 9.062 kB / 382.6 MB, free: 17.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.129e-05/0.4121, allocations: 179.8 kB / 382.8 MB, free: 17.78 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.4121, allocations: 6.719 kB / 382.8 MB, free: 17.78 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.4121, allocations: 8.781 kB / 382.8 MB, free: 17.78 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/0.4123, allocations: 94.5 kB / 382.9 MB, free: 17.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.4124, allocations: 1 kB / 382.9 MB, free: 17.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.4124, allocations: 4.688 kB / 382.9 MB, free: 17.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.381e-06/0.4124, allocations: 1.312 kB / 382.9 MB, free: 17.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001526/0.4126, allocations: 48.7 kB / 382.9 MB, free: 17.7 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.413, allocations: 389.2 kB / 383.3 MB, free: 17.33 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001733/0.4132, allocations: 91.47 kB / 383.4 MB, free: 17.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.4132, allocations: 5.031 kB / 383.4 MB, free: 17.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002229/0.4135, allocations: 146 kB / 383.5 MB, free: 17.15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 3.381e-06/0.4135, allocations: 3.984 kB / 383.5 MB, free: 17.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005326/0.414, allocations: 281.5 kB / 383.8 MB, free: 16.97 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.4141, allocations: 164.4 kB / 384 MB, free: 16.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.4142, allocations: 122.5 kB / 384.1 MB, free: 16.69 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.4142, allocations: 33.78 kB / 384.1 MB, free: 16.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.061e-05/0.4143, allocations: 155.7 kB / 384.3 MB, free: 16.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.4143, allocations: 19.06 kB / 384.3 MB, free: 16.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.437e-06/0.4144, allocations: 8.75 kB / 384.3 MB, free: 16.49 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.026e-05/0.4144, allocations: 318.2 kB / 384.6 MB, free: 16.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.759e-05/0.4145, allocations: 34.06 kB / 384.7 MB, free: 16.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.4146, allocations: 54.44 kB / 384.7 MB, free: 16.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.4148, allocations: 92.42 kB / 384.8 MB, free: 16.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.004e-06/0.4148, allocations: 0 / 384.8 MB, free: 16.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003256/0.4151, allocations: 183.6 kB / 385 MB, free: 15.97 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.4152, allocations: 60.39 kB / 385 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.183e-06/0.4152, allocations: 1.875 kB / 385 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.4152, allocations: 1.469 kB / 385 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.614e-05/0.4153, allocations: 7.938 kB / 385 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.42e-06/0.4153, allocations: 1.438 kB / 385 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.4154, allocations: 19.92 kB / 385.1 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.599e-05/0.4154, allocations: 6.25 kB / 385.1 MB, free: 15.9 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.0001093/0.4156, allocations: 157.7 kB / 385.2 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.247e-05/0.4156, allocations: 11.84 kB / 385.2 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.468e-05/0.4157, allocations: 16.25 kB / 385.3 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.4157, allocations: 1.469 kB / 385.3 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.143e-06/0.4157, allocations: 0 / 385.3 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.4157, allocations: 6.984 kB / 385.3 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.4159, allocations: 198.7 kB / 385.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.252e-06/0.4159, allocations: 1.938 kB / 385.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.213e-05/0.4159, allocations: 1.375 kB / 385.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.95e-06/0.4159, allocations: 1.375 kB / 385.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.4159, allocations: 9.609 kB / 385.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.59e-06/0.416, allocations: 1.375 kB / 385.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.309e-06/0.416, allocations: 5.312 kB / 385.5 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003838/0.4164, allocations: 234 kB / 385.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.061e-05/0.4164, allocations: 83.77 kB / 385.8 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/0.4165, allocations: 9.953 kB / 385.8 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.4166, allocations: 13.52 kB / 385.8 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.45e-05/0.4167, allocations: 22.39 kB / 385.8 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.4167, allocations: 8.422 kB / 385.8 MB, free: 15.28 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.67e-05/0.4168, allocations: 101.3 kB / 385.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-07/0.4168, allocations: 0 / 385.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000334/0.4171, allocations: 34.06 kB / 386 MB, free: 15.21 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.0001813/0.4173, allocations: 128.6 kB / 386.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003146/0.4177, allocations: 206.4 kB / 386.3 MB, free: 14.97 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.693e-06/0.4177, allocations: 3.938 kB / 386.3 MB, free: 14.97 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.4179, allocations: 121.1 kB / 386.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.4181, allocations: 13.58 kB / 386.4 MB, free: 14.9 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004517/0.4186, allocations: 250.3 kB / 386.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001368/0.4187, allocations: 0.6961 MB / 387.4 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.243e-05/0.4188, allocations: 11.47 kB / 387.4 MB, free: 14.01 MB / 314.7 MB Notification: Performance of SimCode: time 1.352e-06/0.4188, allocations: 1.344 kB / 387.4 MB, free: 14.01 MB / 314.7 MB Notification: Performance of Templates: time 0.003494/0.4223, allocations: 1.358 MB / 388.7 MB, free: 13.9 MB / 314.7 MB