Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.68/1.68, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003544, allocations: 8 kB / 233.2 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06913/0.0695, allocations: 38.76 MB / 271.9 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00175/0.0713, allocations: 1.135 MB / 273 MB, free: 11.07 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.07241, allocations: 0.5161 MB / 273.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.495e-05/0.07247, allocations: 0 / 273.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.597e-05/0.07252, allocations: 3.938 kB / 273.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.07263, allocations: 15.97 kB / 273.6 MB, free: 10.53 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004108/0.07305, allocations: 75.78 kB / 273.7 MB, free: 10.46 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 9.933e-05/0.07317, allocations: 43.94 kB / 273.7 MB, free: 10.41 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.369e-05/0.07323, allocations: 12.12 kB / 273.7 MB, free: 10.4 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.257e-05/0.07331, allocations: 23.92 kB / 273.7 MB, free: 10.38 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.666e-05/0.07339, allocations: 27.91 kB / 273.8 MB, free: 10.35 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.07342, allocations: 4 kB / 273.8 MB, free: 10.35 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.07356, allocations: 43.89 kB / 273.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.897e-05/0.07362, allocations: 11.98 kB / 273.8 MB, free: 10.29 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.56e-05/0.07368, allocations: 41.64 kB / 273.9 MB, free: 10.25 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.07385, allocations: 67.88 kB / 273.9 MB, free: 10.18 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.646e-06/0.07387, allocations: 0 / 273.9 MB, free: 10.18 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.584e-06/0.07388, allocations: 0 / 273.9 MB, free: 10.18 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.938e-06/0.0739, allocations: 4 kB / 273.9 MB, free: 10.18 MB / 234.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.0006597/0.07457, allocations: 436.2 kB / 274.4 MB, free: 9.691 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.07461, allocations: 11.97 kB / 274.4 MB, free: 9.68 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.133e-05/0.07468, allocations: 15.89 kB / 274.4 MB, free: 9.664 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.07485, allocations: 171 kB / 274.6 MB, free: 9.457 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.07489, allocations: 7.953 kB / 274.6 MB, free: 9.449 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.43e-05/0.07493, allocations: 4 kB / 274.6 MB, free: 9.445 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.07518, allocations: 101 kB / 274.7 MB, free: 9.328 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.315e-06/0.07521, allocations: 3.938 kB / 274.7 MB, free: 9.324 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.07524, allocations: 4 kB / 274.7 MB, free: 9.32 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.429e-06/0.07525, allocations: 0 / 274.7 MB, free: 9.32 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001565/0.07542, allocations: 39.92 kB / 274.7 MB, free: 9.281 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005446/0.07598, allocations: 394.7 kB / 275.1 MB, free: 8.836 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002243/0.07623, allocations: 103.8 kB / 275.2 MB, free: 8.707 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.07627, allocations: 3.938 kB / 275.2 MB, free: 8.703 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003161/0.07659, allocations: 139.7 kB / 275.3 MB, free: 8.539 MB / 234.7 MB Notification: Performance of pre-optimization done (n=10): time 2.53e-06/0.07661, allocations: 0 / 275.3 MB, free: 8.539 MB / 234.7 MB Notification: Performance of matching and sorting (n=10): time 0.0006353/0.07726, allocations: 292.4 kB / 275.6 MB, free: 8.223 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.07739, allocations: 162.2 kB / 275.8 MB, free: 8.027 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.07757, allocations: 134 kB / 275.9 MB, free: 7.883 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.07762, allocations: 33.7 kB / 275.9 MB, free: 7.844 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.176e-05/0.07772, allocations: 154.8 kB / 276.1 MB, free: 7.691 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.76e-05/0.07777, allocations: 19.72 kB / 276.1 MB, free: 7.672 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.287e-06/0.07779, allocations: 0 / 276.1 MB, free: 7.672 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.07797, allocations: 326.9 kB / 276.4 MB, free: 7.344 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.07809, allocations: 27.98 kB / 276.5 MB, free: 7.316 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.07823, allocations: 55.36 kB / 276.5 MB, free: 7.25 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.07838, allocations: 91.33 kB / 276.6 MB, free: 7.148 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.06e-06/0.0784, allocations: 4 kB / 276.6 MB, free: 7.145 MB / 234.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003776/0.07879, allocations: 177 kB / 276.8 MB, free: 6.953 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.047e-05/0.07886, allocations: 63.39 kB / 276.8 MB, free: 6.879 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.232e-06/0.07889, allocations: 4 kB / 276.8 MB, free: 6.875 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.07891, allocations: 0 / 276.8 MB, free: 6.875 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.012e-05/0.07897, allocations: 4 kB / 276.9 MB, free: 6.871 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.07899, allocations: 0 / 276.9 MB, free: 6.871 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.07913, allocations: 31.83 kB / 276.9 MB, free: 6.84 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.07916, allocations: 4 kB / 276.9 MB, free: 6.836 MB / 234.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.0001683/0.07934, allocations: 163.4 kB / 277 MB, free: 6.66 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.32e-05/0.07939, allocations: 7.906 kB / 277.1 MB, free: 6.652 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.848e-05/0.07944, allocations: 12.31 kB / 277.1 MB, free: 6.641 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.013e-06/0.07945, allocations: 0 / 277.1 MB, free: 6.641 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.698e-06/0.07947, allocations: 4 kB / 277.1 MB, free: 6.637 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.07948, allocations: 0 / 277.1 MB, free: 6.637 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.07974, allocations: 197.6 kB / 277.3 MB, free: 6.395 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.373e-06/0.07975, allocations: 4 kB / 277.3 MB, free: 6.391 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.744e-05/0.07978, allocations: 4 kB / 277.3 MB, free: 6.387 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.642e-06/0.0798, allocations: 3.938 kB / 277.3 MB, free: 6.383 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.07982, allocations: 4 kB / 277.3 MB, free: 6.379 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.049e-06/0.07984, allocations: 3.984 kB / 277.3 MB, free: 6.375 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.616e-06/0.07985, allocations: 3.938 kB / 277.3 MB, free: 6.371 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00047/0.08033, allocations: 212.4 kB / 277.5 MB, free: 6.133 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.304e-05/0.08042, allocations: 92.97 kB / 277.6 MB, free: 6.023 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.268e-05/0.08047, allocations: 0 / 277.6 MB, free: 6.023 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.0806, allocations: 16.36 kB / 277.6 MB, free: 6.008 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.022e-05/0.08069, allocations: 15.92 kB / 277.6 MB, free: 5.992 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-05/0.08072, allocations: 7.984 kB / 277.6 MB, free: 5.984 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001027/0.08083, allocations: 107.3 kB / 277.7 MB, free: 5.879 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.19e-07/0.08085, allocations: 0 / 277.7 MB, free: 5.879 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003324/0.08119, allocations: 35.94 kB / 277.8 MB, free: 5.844 MB / 234.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.0002193/0.08142, allocations: 127.2 kB / 277.9 MB, free: 5.707 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004034/0.08184, allocations: 198.7 kB / 278.1 MB, free: 5.488 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.08186, allocations: 0 / 278.1 MB, free: 5.488 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000229/0.0821, allocations: 127.4 kB / 278.2 MB, free: 5.352 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002165/0.08234, allocations: 15.23 kB / 278.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005397/0.08289, allocations: 252.7 kB / 278.5 MB, free: 5.059 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.08329, allocations: 0.6965 MB / 279.2 MB, free: 4.336 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.723e-05/0.08334, allocations: 11.44 kB / 279.2 MB, free: 4.328 MB / 234.7 MB Notification: Performance of SimCode: time 1.506e-06/0.08335, allocations: 0 / 279.2 MB, free: 4.328 MB / 234.7 MB Notification: Performance of Templates: time 0.003704/0.08707, allocations: 1.356 MB / 280.5 MB, free: 2.969 MB / 234.7 MB