Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_1_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.174/1.174, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002675/0.0002675, allocations: 8 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05988/0.06017, allocations: 25.18 MB / 183.5 MB, free: 5.918 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002693/0.06295, allocations: 1.007 MB / 184.5 MB, free: 4.91 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.06457, allocations: 468.6 kB / 185 MB, free: 4.449 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.623e-05/0.06466, allocations: 0 / 185 MB, free: 4.449 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 5.993e-05/0.06474, allocations: 7.922 kB / 185 MB, free: 4.441 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.06492, allocations: 15.98 kB / 185 MB, free: 4.426 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000691/0.06563, allocations: 87.75 kB / 185.1 MB, free: 4.34 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.06579, allocations: 39.95 kB / 185.1 MB, free: 4.301 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.764e-05/0.06588, allocations: 4.469 kB / 185.1 MB, free: 4.297 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.506e-05/0.06599, allocations: 23.92 kB / 185.2 MB, free: 4.273 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001055/0.06611, allocations: 35.83 kB / 185.2 MB, free: 4.238 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 3.048e-05/0.06616, allocations: 8 kB / 185.2 MB, free: 4.23 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.06638, allocations: 43.95 kB / 185.2 MB, free: 4.188 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.0665, allocations: 15.92 kB / 185.3 MB, free: 4.172 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 8.895e-05/0.06662, allocations: 37.7 kB / 185.3 MB, free: 4.129 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.06688, allocations: 71.81 kB / 185.4 MB, free: 4.059 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.06691, allocations: 0 / 185.4 MB, free: 4.059 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.06692, allocations: 0 / 185.4 MB, free: 4.059 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.06695, allocations: 0 / 185.4 MB, free: 4.059 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.0009364/0.0679, allocations: 450.4 kB / 185.8 MB, free: 3.559 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/0.06798, allocations: 8.031 kB / 185.8 MB, free: 3.551 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.731e-05/0.06806, allocations: 34.55 kB / 185.8 MB, free: 3.508 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.114e-05/0.06814, allocations: 11.91 kB / 185.9 MB, free: 3.496 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.06836, allocations: 178.9 kB / 186 MB, free: 3.281 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.06841, allocations: 8 kB / 186 MB, free: 3.273 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.966e-05/0.06845, allocations: 4 kB / 186 MB, free: 3.27 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003802/0.06885, allocations: 105 kB / 186.1 MB, free: 3.148 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.06889, allocations: 3.938 kB / 186.1 MB, free: 3.145 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.06893, allocations: 3.953 kB / 186.1 MB, free: 3.141 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.06896, allocations: 4 kB / 186.2 MB, free: 3.137 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002834/0.06926, allocations: 43.91 kB / 186.2 MB, free: 3.094 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007627/0.07004, allocations: 378.9 kB / 186.6 MB, free: 2.664 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.07042, allocations: 95.8 kB / 186.7 MB, free: 2.543 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.924e-05/0.07049, allocations: 4 kB / 186.7 MB, free: 2.539 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004594/0.07097, allocations: 147.6 kB / 186.8 MB, free: 2.367 MB / 154.7 MB Notification: Performance of pre-optimization done (n=10): time 4.208e-06/0.071, allocations: 0 / 186.8 MB, free: 2.367 MB / 154.7 MB Notification: Performance of matching and sorting (n=10): time 0.001028/0.07204, allocations: 280.4 kB / 187.1 MB, free: 2.062 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.07222, allocations: 166.2 kB / 187.2 MB, free: 1.863 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.07246, allocations: 138 kB / 187.4 MB, free: 1.715 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 4.803e-05/0.07254, allocations: 29.7 kB / 187.4 MB, free: 1.68 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.07267, allocations: 158.8 kB / 187.6 MB, free: 1.523 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.897e-05/0.07275, allocations: 23.73 kB / 187.6 MB, free: 1.5 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.316e-05/0.07278, allocations: 0 / 187.6 MB, free: 1.5 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.07298, allocations: 318.8 kB / 187.9 MB, free: 1.18 MB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.07318, allocations: 31.92 kB / 187.9 MB, free: 1.148 MB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.0734, allocations: 51.42 kB / 188 MB, free: 1.086 MB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.07364, allocations: 87.38 kB / 188.1 MB, free: 0.9883 MB / 154.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.07367, allocations: 0 / 188.1 MB, free: 0.9883 MB / 154.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006419/0.07432, allocations: 192.9 kB / 188.3 MB, free: 0.7812 MB / 154.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.694e-05/0.07443, allocations: 59.36 kB / 188.3 MB, free: 0.7109 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.474e-05/0.07454, allocations: 4 kB / 188.3 MB, free: 0.707 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.07458, allocations: 3.938 kB / 188.3 MB, free: 0.7031 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.839e-05/0.0747, allocations: 7.938 kB / 188.3 MB, free: 0.6953 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.07472, allocations: 0 / 188.3 MB, free: 0.6953 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002571/0.075, allocations: 19.98 kB / 188.3 MB, free: 0.6758 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.07505, allocations: 4 kB / 188.3 MB, free: 0.6719 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.0002634/0.07533, allocations: 163.5 kB / 188.5 MB, free: 0.4961 MB / 154.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.743e-05/0.0754, allocations: 7.906 kB / 188.5 MB, free: 500 kB / 154.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.782e-05/0.0755, allocations: 20.25 kB / 188.5 MB, free: 476 kB / 154.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.07552, allocations: 0 / 188.5 MB, free: 476 kB / 154.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.07555, allocations: 4 kB / 188.5 MB, free: 472 kB / 154.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.07557, allocations: 0 / 188.5 MB, free: 472 kB / 154.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003802/0.07596, allocations: 189.5 kB / 188.7 MB, free: 232 kB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.07599, allocations: 8.312 kB / 188.7 MB, free: 224 kB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.816e-05/0.07604, allocations: 7.922 kB / 188.7 MB, free: 216 kB / 154.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.253e-06/0.07607, allocations: 4 kB / 188.7 MB, free: 212 kB / 154.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.721e-05/0.07612, allocations: 12 kB / 188.8 MB, free: 200 kB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.48e-05/0.07615, allocations: 3.953 kB / 188.8 MB, free: 196 kB / 154.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.07617, allocations: 4 kB / 188.8 MB, free: 192 kB / 154.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008453/0.07703, allocations: 208.4 kB / 189 MB, free: 15.95 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.962e-05/0.07715, allocations: 89.02 kB / 189.1 MB, free: 15.85 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.372e-05/0.07725, allocations: 11.98 kB / 189.1 MB, free: 15.84 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002631/0.07753, allocations: 11.98 kB / 189.1 MB, free: 15.82 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.07766, allocations: 11.94 kB / 189.1 MB, free: 15.81 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.07772, allocations: 8 kB / 189.1 MB, free: 15.8 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001606/0.0779, allocations: 103.3 kB / 189.2 MB, free: 15.7 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.07792, allocations: 0 / 189.2 MB, free: 15.7 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0005905/0.07853, allocations: 36 kB / 189.2 MB, free: 15.67 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.001479/0.08003, allocations: 0.7835 MB / 190 MB, free: 14.84 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0006795/0.08075, allocations: 202.7 kB / 190.2 MB, free: 14.62 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.08079, allocations: 0 / 190.2 MB, free: 14.62 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.08119, allocations: 115.3 kB / 190.3 MB, free: 14.5 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004078/0.08163, allocations: 19.94 kB / 190.3 MB, free: 14.48 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.0842, allocations: 0.6994 MB / 191 MB, free: 13.71 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004622/0.08471, allocations: 0.6965 MB / 191.7 MB, free: 12.98 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.08484, allocations: 19.44 kB / 191.8 MB, free: 12.96 MB / 170.7 MB Notification: Performance of SimCode: time 1.533e-06/0.08486, allocations: 0 / 191.8 MB, free: 12.96 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.648/2.733, allocations: 1.755 MB / 193.5 MB, free: 11.21 MB / 170.7 MB