Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.143/1.143, allocations: 111.1 MB / 126.7 MB, free: 6.152 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002723/0.0002724, allocations: 4 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0579/0.05821, allocations: 25.17 MB / 183.5 MB, free: 5.922 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001881/0.06015, allocations: 1.015 MB / 184.5 MB, free: 4.906 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.06136, allocations: 0.5121 MB / 185 MB, free: 4.391 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.095e-05/0.06145, allocations: 0 / 185 MB, free: 4.391 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 3.818e-05/0.0615, allocations: 0 / 185 MB, free: 4.391 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 7.548e-05/0.06159, allocations: 7.922 kB / 185 MB, free: 4.383 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007852/0.06239, allocations: 135.8 kB / 185.2 MB, free: 4.25 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.000119/0.06252, allocations: 55.88 kB / 185.2 MB, free: 4.195 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.06264, allocations: 16.27 kB / 185.2 MB, free: 4.18 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.634e-05/0.06271, allocations: 31.91 kB / 185.3 MB, free: 4.148 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.049e-05/0.06279, allocations: 27.84 kB / 185.3 MB, free: 4.121 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.06282, allocations: 4 kB / 185.3 MB, free: 4.117 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002439/0.06308, allocations: 91.91 kB / 185.4 MB, free: 4.027 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 5.065e-05/0.06314, allocations: 19.92 kB / 185.4 MB, free: 4.008 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 6.224e-05/0.06322, allocations: 41.7 kB / 185.5 MB, free: 3.961 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002966/0.06353, allocations: 107.7 kB / 185.6 MB, free: 3.855 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.06355, allocations: 4 kB / 185.6 MB, free: 3.852 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.06356, allocations: 3.938 kB / 185.6 MB, free: 3.848 MB / 154.7 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.06358, allocations: 0 / 185.6 MB, free: 3.848 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000604/0.0642, allocations: 497.8 kB / 186.1 MB, free: 3.289 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.06425, allocations: 8.031 kB / 186.1 MB, free: 3.281 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.306e-05/0.06432, allocations: 38.56 kB / 186.1 MB, free: 3.234 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.222e-05/0.06438, allocations: 11.91 kB / 186.1 MB, free: 3.223 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.06454, allocations: 178.9 kB / 186.3 MB, free: 3.008 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.06458, allocations: 7.938 kB / 186.3 MB, free: 3 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.373e-05/0.06462, allocations: 12 kB / 186.3 MB, free: 2.988 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.06491, allocations: 89.66 kB / 186.4 MB, free: 2.895 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.06493, allocations: 3.938 kB / 186.4 MB, free: 2.891 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.06496, allocations: 7.953 kB / 186.4 MB, free: 2.883 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.06498, allocations: 4 kB / 186.4 MB, free: 2.879 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001611/0.06515, allocations: 43.97 kB / 186.5 MB, free: 2.836 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006297/0.06579, allocations: 348.6 kB / 186.8 MB, free: 2.445 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001963/0.06601, allocations: 74.48 kB / 186.9 MB, free: 2.363 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.06603, allocations: 0 / 186.9 MB, free: 2.363 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.06635, allocations: 162.8 kB / 187 MB, free: 2.18 MB / 154.7 MB Notification: Performance of pre-optimization done (n=11): time 1.923e-06/0.06636, allocations: 0 / 187 MB, free: 2.18 MB / 154.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007517/0.06712, allocations: 427.1 kB / 187.4 MB, free: 1.707 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.06726, allocations: 162.2 kB / 187.6 MB, free: 1.512 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.06745, allocations: 138 kB / 187.7 MB, free: 1.363 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.0675, allocations: 33.7 kB / 187.8 MB, free: 1.324 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.971e-05/0.06761, allocations: 158.5 kB / 187.9 MB, free: 1.168 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.33e-05/0.06767, allocations: 35.86 kB / 188 MB, free: 1.133 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-06/0.06768, allocations: 0 / 188 MB, free: 1.133 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.06785, allocations: 322.8 kB / 188.3 MB, free: 0.8086 MB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.862e-05/0.06796, allocations: 31.98 kB / 188.3 MB, free: 0.7773 MB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.06807, allocations: 35.89 kB / 188.3 MB, free: 0.7422 MB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.06825, allocations: 145 kB / 188.5 MB, free: 0.5781 MB / 154.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.06827, allocations: 3.953 kB / 188.5 MB, free: 0.5742 MB / 154.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004348/0.06871, allocations: 260.3 kB / 188.7 MB, free: 296 kB / 154.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.06883, allocations: 118.8 kB / 188.9 MB, free: 152 kB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.06885, allocations: 0 / 188.9 MB, free: 152 kB / 154.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.06887, allocations: 0 / 188.9 MB, free: 152 kB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.44e-05/0.06891, allocations: 4 kB / 188.9 MB, free: 148 kB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.06894, allocations: 4 kB / 188.9 MB, free: 144 kB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000131/0.06907, allocations: 7.906 kB / 188.9 MB, free: 136 kB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.06911, allocations: 11.98 kB / 188.9 MB, free: 124 kB / 154.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0002441/0.06938, allocations: 193.3 kB / 189.1 MB, free: 15.91 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.06943, allocations: 11.86 kB / 189.1 MB, free: 15.89 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.146e-05/0.06948, allocations: 16.36 kB / 189.1 MB, free: 15.88 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.0695, allocations: 3.938 kB / 189.1 MB, free: 15.88 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.06951, allocations: 4 kB / 189.1 MB, free: 15.87 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.06953, allocations: 3.984 kB / 189.1 MB, free: 15.87 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.06977, allocations: 213.4 kB / 189.3 MB, free: 15.61 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-06/0.06979, allocations: 0 / 189.3 MB, free: 15.61 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.294e-05/0.06981, allocations: 3.953 kB / 189.3 MB, free: 15.61 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.06982, allocations: 0 / 189.3 MB, free: 15.61 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.06985, allocations: 7.984 kB / 189.3 MB, free: 15.6 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.06987, allocations: 0 / 189.3 MB, free: 15.6 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.06988, allocations: 3.984 kB / 189.3 MB, free: 15.59 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005578/0.07044, allocations: 276.4 kB / 189.6 MB, free: 15.29 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.07052, allocations: 85.02 kB / 189.7 MB, free: 15.19 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.958e-05/0.07058, allocations: 11.95 kB / 189.7 MB, free: 15.18 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.07073, allocations: 11.98 kB / 189.7 MB, free: 15.17 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.458e-05/0.07082, allocations: 11.98 kB / 189.7 MB, free: 15.16 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.087e-05/0.07085, allocations: 4 kB / 189.7 MB, free: 15.15 MB / 170.7 MB Notification: Performance of sorting global known variables: time 9.18e-05/0.07095, allocations: 100 kB / 189.8 MB, free: 15.05 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.07096, allocations: 0 / 189.8 MB, free: 15.05 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0004413/0.07141, allocations: 63.98 kB / 189.9 MB, free: 14.99 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$whenCondition2,table2.y,table2.nextTime,table2.index,table1.y,table1.nextTime,table1.index,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 9 (Pre1.u,table1.y,table1.nextTime,table1.index,$whenCondition1,table2.y,table2.nextTime,table2.index,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.001123/0.07255, allocations: 0.8642 MB / 190.8 MB, free: 14.09 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0005094/0.07309, allocations: 333.5 kB / 191.1 MB, free: 13.72 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.07311, allocations: 0 / 191.1 MB, free: 13.72 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.07338, allocations: 194.8 kB / 191.3 MB, free: 13.5 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001613/0.07356, allocations: 11.89 kB / 191.3 MB, free: 13.49 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.07529, allocations: 0.7528 MB / 192 MB, free: 12.68 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.07571, allocations: 0.7043 MB / 192.7 MB, free: 11.95 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.543e-05/0.07579, allocations: 23.44 kB / 192.8 MB, free: 11.93 MB / 170.7 MB Notification: Performance of SimCode: time 1.062e-06/0.0758, allocations: 0 / 192.8 MB, free: 11.93 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.735/2.811, allocations: 2.054 MB / 194.8 MB, free: 9.871 MB / 170.7 MB