Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.981/1.981, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003469/0.000347, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1029, allocations: 44.5 MB / 309 MB, free: 1.074 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5148/0.6178, allocations: 71.9 MB / 380.9 MB, free: 14.9 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/0.618, allocations: 64.03 kB / 380.9 MB, free: 14.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008046/0.6261, allocations: 1.728 MB / 382.7 MB, free: 14.53 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.118e-06/0.6261, allocations: 0 / 382.7 MB, free: 14.53 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.6262, allocations: 8.406 kB / 382.7 MB, free: 14.53 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.0006639/0.6268, allocations: 442.5 kB / 383.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.6269, allocations: 9.562 kB / 383.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.205e-05/0.627, allocations: 9.844 kB / 383.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.6271, allocations: 178.2 kB / 383.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.6272, allocations: 3.031 kB / 383.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.971e-05/0.6272, allocations: 4.406 kB / 383.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002758/0.6275, allocations: 100.2 kB / 383.4 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.6275, allocations: 1.438 kB / 383.4 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.6275, allocations: 4.969 kB / 383.4 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.6276, allocations: 1.344 kB / 383.4 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.6277, allocations: 41.88 kB / 383.4 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005387/0.6283, allocations: 391.1 kB / 383.8 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002214/0.6285, allocations: 96.25 kB / 383.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.266e-05/0.6286, allocations: 5 kB / 383.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002897/0.6289, allocations: 141.9 kB / 384.1 MB, free: 13.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.746e-06/0.6289, allocations: 0 / 384.1 MB, free: 13.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006973/0.6296, allocations: 289.3 kB / 384.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.876e-05/0.6297, allocations: 165.1 kB / 384.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.6299, allocations: 135.8 kB / 384.6 MB, free: 12.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.6299, allocations: 33.17 kB / 384.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.718e-05/0.63, allocations: 158.8 kB / 384.8 MB, free: 12.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.643e-05/0.63, allocations: 19.36 kB / 384.8 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.949e-06/0.63, allocations: 1.438 kB / 384.8 MB, free: 12.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.266e-05/0.6301, allocations: 321.7 kB / 385.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.6302, allocations: 30.92 kB / 385.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.6304, allocations: 53.2 kB / 385.2 MB, free: 12.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.6305, allocations: 81.28 kB / 385.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.6305, allocations: 1.188 kB / 385.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004068/0.631, allocations: 194.1 kB / 385.5 MB, free: 12.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.178e-05/0.631, allocations: 63.64 kB / 385.6 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.6311, allocations: 4 kB / 385.6 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.6311, allocations: 1.375 kB / 385.6 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.385e-05/0.6312, allocations: 4.469 kB / 385.6 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.6312, allocations: 5.375 kB / 385.6 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.6313, allocations: 13.12 kB / 385.6 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-05/0.6314, allocations: 11.16 kB / 385.6 MB, free: 12 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.0001547/0.6316, allocations: 159.9 kB / 385.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.863e-05/0.6316, allocations: 12.16 kB / 385.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.722e-05/0.6317, allocations: 14.69 kB / 385.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.6317, allocations: 6.219 kB / 385.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.6317, allocations: 0 / 385.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.6317, allocations: 1.688 kB / 385.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.6319, allocations: 196.7 kB / 386 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.6319, allocations: 4 kB / 386 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.529e-05/0.632, allocations: 1.312 kB / 386 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.632, allocations: 1.312 kB / 386 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.632, allocations: 8.609 kB / 386 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.632, allocations: 1.062 kB / 386 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.632, allocations: 1.25 kB / 386 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004547/0.6325, allocations: 221.3 kB / 386.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.782e-05/0.6325, allocations: 84.86 kB / 386.3 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.164e-05/0.6326, allocations: 4.219 kB / 386.3 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.6328, allocations: 14.67 kB / 386.3 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.126e-05/0.6329, allocations: 13.3 kB / 386.3 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.6329, allocations: 5.203 kB / 386.3 MB, free: 11.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.153e-05/0.633, allocations: 106.7 kB / 386.4 MB, free: 11.34 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.663e-06/0.633, allocations: 5.094 kB / 386.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003753/0.6334, allocations: 35.72 kB / 386.5 MB, free: 11.33 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.0002166/0.6336, allocations: 128.3 kB / 386.6 MB, free: 11.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000387/0.634, allocations: 199.5 kB / 386.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.634, allocations: 0 / 386.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002147/0.6342, allocations: 127.7 kB / 386.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.6345, allocations: 15.3 kB / 386.9 MB, free: 11.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005686/0.6351, allocations: 253.9 kB / 387.2 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000163/0.6353, allocations: 0.6974 MB / 387.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.262e-05/0.6353, allocations: 11.44 kB / 387.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of SimCode: time 9.22e-07/0.6353, allocations: 3.938 kB / 387.9 MB, free: 10.13 MB / 314.7 MB Notification: Performance of Templates: time 0.004277/0.6396, allocations: 1.341 MB / 389.2 MB, free: 10.03 MB / 314.7 MB