Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.15/1.15, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002652/0.0002654, allocations: 4 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04635/0.04664, allocations: 25.17 MB / 183.4 MB, free: 6.016 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00158/0.04826, allocations: 1.011 MB / 184.4 MB, free: 5.004 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009296/0.04921, allocations: 476.5 kB / 184.9 MB, free: 4.535 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.698e-05/0.04927, allocations: 0 / 184.9 MB, free: 4.535 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 2.718e-05/0.04931, allocations: 0 / 184.9 MB, free: 4.535 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.04943, allocations: 19.91 kB / 184.9 MB, free: 4.516 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004182/0.04986, allocations: 71.84 kB / 185 MB, free: 4.445 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001213/0.05, allocations: 55.86 kB / 185 MB, free: 4.391 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.265e-05/0.05006, allocations: 4.188 kB / 185 MB, free: 4.387 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.629e-05/0.05014, allocations: 23.92 kB / 185.1 MB, free: 4.363 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.04e-05/0.05022, allocations: 31.84 kB / 185.1 MB, free: 4.332 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 1.942e-05/0.05026, allocations: 4 kB / 185.1 MB, free: 4.328 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.05042, allocations: 43.97 kB / 185.1 MB, free: 4.285 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 5.126e-05/0.05049, allocations: 11.97 kB / 185.1 MB, free: 4.273 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 8.554e-05/0.0506, allocations: 41.64 kB / 185.2 MB, free: 4.227 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002372/0.05085, allocations: 76.08 kB / 185.3 MB, free: 4.152 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.254e-06/0.05088, allocations: 4 kB / 185.3 MB, free: 4.148 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.633e-06/0.0509, allocations: 0 / 185.3 MB, free: 4.148 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.05093, allocations: 0 / 185.3 MB, free: 4.148 MB / 154.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.0009265/0.05187, allocations: 442.4 kB / 185.7 MB, free: 3.656 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.05194, allocations: 8.031 kB / 185.7 MB, free: 3.648 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.67e-05/0.05202, allocations: 11.91 kB / 185.7 MB, free: 3.637 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.05226, allocations: 170.9 kB / 185.9 MB, free: 3.43 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.471e-05/0.05233, allocations: 15.94 kB / 185.9 MB, free: 3.414 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.956e-05/0.05239, allocations: 4 kB / 185.9 MB, free: 3.41 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003889/0.0528, allocations: 97.03 kB / 186 MB, free: 3.297 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.05284, allocations: 0 / 186 MB, free: 3.297 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.05288, allocations: 0 / 186 MB, free: 3.297 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.05291, allocations: 7.953 kB / 186 MB, free: 3.289 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000281/0.05321, allocations: 47.91 kB / 186.1 MB, free: 3.242 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000878/0.05411, allocations: 378.8 kB / 186.4 MB, free: 2.812 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003621/0.0545, allocations: 99.8 kB / 186.5 MB, free: 2.688 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.05455, allocations: 0 / 186.5 MB, free: 2.688 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004701/0.05504, allocations: 155.7 kB / 186.7 MB, free: 2.508 MB / 154.7 MB Notification: Performance of pre-optimization done (n=10): time 6.393e-06/0.05508, allocations: 4 kB / 186.7 MB, free: 2.504 MB / 154.7 MB Notification: Performance of matching and sorting (n=10): time 0.0007322/0.05582, allocations: 280.2 kB / 187 MB, free: 2.199 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.05596, allocations: 162.2 kB / 187.1 MB, free: 2.004 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.05612, allocations: 134 kB / 187.2 MB, free: 1.859 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.05617, allocations: 29.7 kB / 187.3 MB, free: 1.824 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.952e-05/0.05628, allocations: 158.8 kB / 187.4 MB, free: 1.668 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.748e-05/0.05633, allocations: 27.89 kB / 187.5 MB, free: 1.641 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.315e-06/0.05635, allocations: 0 / 187.5 MB, free: 1.641 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.05652, allocations: 318.8 kB / 187.8 MB, free: 1.32 MB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.609e-05/0.05663, allocations: 23.98 kB / 187.8 MB, free: 1.297 MB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.05676, allocations: 51.42 kB / 187.8 MB, free: 1.234 MB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.05691, allocations: 95.31 kB / 187.9 MB, free: 1.129 MB / 154.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.007e-06/0.05693, allocations: 0 / 187.9 MB, free: 1.129 MB / 154.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004262/0.05736, allocations: 184.9 kB / 188.1 MB, free: 0.9297 MB / 154.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.38e-05/0.05744, allocations: 59.36 kB / 188.2 MB, free: 0.8594 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.998e-06/0.05747, allocations: 4 kB / 188.2 MB, free: 0.8555 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.05749, allocations: 0 / 188.2 MB, free: 0.8555 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.783e-05/0.05755, allocations: 4 kB / 188.2 MB, free: 0.8516 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.154e-06/0.05757, allocations: 7.875 kB / 188.2 MB, free: 0.8438 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.0577, allocations: 24.05 kB / 188.2 MB, free: 0.8203 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.05773, allocations: 4 kB / 188.2 MB, free: 0.8164 MB / 154.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.0001728/0.05792, allocations: 159.5 kB / 188.4 MB, free: 0.6445 MB / 154.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/0.05796, allocations: 7.906 kB / 188.4 MB, free: 0.6367 MB / 154.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.082e-05/0.05801, allocations: 20.25 kB / 188.4 MB, free: 0.6133 MB / 154.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.24e-06/0.05803, allocations: 4 kB / 188.4 MB, free: 0.6094 MB / 154.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.791e-06/0.05804, allocations: 3.938 kB / 188.4 MB, free: 0.6055 MB / 154.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.577e-06/0.05806, allocations: 4 kB / 188.4 MB, free: 0.6016 MB / 154.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.05832, allocations: 189.6 kB / 188.6 MB, free: 376 kB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.437e-06/0.05834, allocations: 4 kB / 188.6 MB, free: 372 kB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.447e-05/0.05837, allocations: 3.984 kB / 188.6 MB, free: 368 kB / 154.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.05838, allocations: 0 / 188.6 MB, free: 368 kB / 154.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.05841, allocations: 8 kB / 188.6 MB, free: 360 kB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.889e-06/0.05843, allocations: 7.891 kB / 188.6 MB, free: 352 kB / 154.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.404e-06/0.05844, allocations: 4 kB / 188.6 MB, free: 348 kB / 154.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004358/0.05888, allocations: 216.6 kB / 188.8 MB, free: 100 kB / 154.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.515e-05/0.05899, allocations: 85.06 kB / 188.9 MB, free: 15.99 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.305e-05/0.05904, allocations: 15.94 kB / 188.9 MB, free: 15.98 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.05918, allocations: 11.98 kB / 188.9 MB, free: 15.97 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.05926, allocations: 15.94 kB / 189 MB, free: 15.95 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.0593, allocations: 12 kB / 189 MB, free: 15.94 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001109/0.05942, allocations: 103.8 kB / 189.1 MB, free: 15.84 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.05943, allocations: 0 / 189.1 MB, free: 15.84 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0003384/0.05978, allocations: 36 kB / 189.1 MB, free: 15.8 MB / 170.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.0002194/0.06001, allocations: 127.2 kB / 189.2 MB, free: 15.67 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0003881/0.06042, allocations: 202.8 kB / 189.4 MB, free: 15.45 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 2.817e-06/0.06044, allocations: 0 / 189.4 MB, free: 15.45 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.06066, allocations: 119.3 kB / 189.5 MB, free: 15.32 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.0609, allocations: 15.98 kB / 189.6 MB, free: 15.3 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005176/0.06143, allocations: 248.8 kB / 189.8 MB, free: 15.03 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.06183, allocations: 0.6965 MB / 190.5 MB, free: 14.3 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.735e-05/0.06188, allocations: 15.38 kB / 190.5 MB, free: 14.29 MB / 170.7 MB Notification: Performance of SimCode: time 1.439e-06/0.0619, allocations: 4 kB / 190.5 MB, free: 14.29 MB / 170.7 MB Notification: Performance of Templates: time 0.003748/0.06565, allocations: 1.377 MB / 191.9 MB, free: 12.91 MB / 170.7 MB