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.LogicalNetwork1.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.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.638/1.638, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003648, allocations: 8 kB / 233.1 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0682/0.06858, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.0018/0.07043, allocations: 1.147 MB / 273.1 MB, free: 11.04 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.07156, allocations: 0.5434 MB / 273.6 MB, free: 10.49 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.141e-05/0.07162, allocations: 3.938 kB / 273.6 MB, free: 10.48 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.383e-05/0.07167, allocations: 0 / 273.6 MB, free: 10.48 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.643e-05/0.07174, allocations: 8 kB / 273.6 MB, free: 10.48 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006196/0.07237, allocations: 135.7 kB / 273.8 MB, free: 10.34 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 9.762e-05/0.07248, allocations: 47.89 kB / 273.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.268e-05/0.07259, allocations: 23.98 kB / 273.8 MB, free: 10.27 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.668e-05/0.07265, allocations: 23.92 kB / 273.8 MB, free: 10.25 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.512e-05/0.07273, allocations: 27.91 kB / 273.9 MB, free: 10.22 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.277e-05/0.07276, allocations: 4 kB / 273.9 MB, free: 10.22 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001927/0.07297, allocations: 87.8 kB / 274 MB, free: 10.13 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.465e-05/0.07303, allocations: 15.92 kB / 274 MB, free: 10.12 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.277e-05/0.0731, allocations: 37.7 kB / 274 MB, free: 10.07 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002021/0.07331, allocations: 103.8 kB / 274.1 MB, free: 9.973 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.07333, allocations: 4 kB / 274.1 MB, free: 9.969 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.07334, allocations: 0 / 274.1 MB, free: 9.969 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.616e-06/0.07335, allocations: 0 / 274.1 MB, free: 9.969 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005515/0.07391, allocations: 494.1 kB / 274.6 MB, free: 9.414 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.07396, allocations: 11.97 kB / 274.6 MB, free: 9.402 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.387e-05/0.07403, allocations: 11.91 kB / 274.6 MB, free: 9.391 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.0742, allocations: 174.9 kB / 274.8 MB, free: 9.18 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.07424, allocations: 7.953 kB / 274.8 MB, free: 9.172 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.414e-05/0.07428, allocations: 12 kB / 274.8 MB, free: 9.16 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002399/0.07453, allocations: 101.6 kB / 274.9 MB, free: 9.055 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.332e-06/0.07456, allocations: 0 / 274.9 MB, free: 9.055 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.07458, allocations: 4 kB / 274.9 MB, free: 9.051 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.07461, allocations: 4 kB / 274.9 MB, free: 9.047 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001305/0.07475, allocations: 43.92 kB / 275 MB, free: 9.004 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005926/0.07535, allocations: 352.6 kB / 275.3 MB, free: 8.609 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001923/0.07557, allocations: 70.48 kB / 275.4 MB, free: 8.531 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.07e-06/0.07559, allocations: 0 / 275.4 MB, free: 8.531 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003093/0.07591, allocations: 162.8 kB / 275.5 MB, free: 8.348 MB / 234.7 MB Notification: Performance of pre-optimization done (n=11): time 2.768e-06/0.07593, allocations: 0 / 275.5 MB, free: 8.348 MB / 234.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006733/0.07661, allocations: 423.1 kB / 276 MB, free: 7.879 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.07675, allocations: 162.2 kB / 276.1 MB, free: 7.684 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.07691, allocations: 141.9 kB / 276.3 MB, free: 7.535 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/0.07696, allocations: 33.7 kB / 276.3 MB, free: 7.496 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.07708, allocations: 166.5 kB / 276.4 MB, free: 7.332 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.104e-05/0.07713, allocations: 31.78 kB / 276.5 MB, free: 7.301 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.691e-06/0.07715, allocations: 0 / 276.5 MB, free: 7.301 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.07732, allocations: 314.8 kB / 276.8 MB, free: 6.984 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.96e-05/0.07742, allocations: 31.98 kB / 276.8 MB, free: 6.953 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.106e-05/0.07751, allocations: 35.98 kB / 276.9 MB, free: 6.918 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.07769, allocations: 146.8 kB / 277 MB, free: 6.75 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.727e-06/0.07771, allocations: 0 / 277 MB, free: 6.75 MB / 234.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003976/0.07811, allocations: 263.1 kB / 277.3 MB, free: 6.465 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.682e-05/0.07822, allocations: 114.8 kB / 277.4 MB, free: 6.328 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.732e-06/0.07824, allocations: 3.984 kB / 277.4 MB, free: 6.324 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.07827, allocations: 0 / 277.4 MB, free: 6.324 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.644e-05/0.07831, allocations: 7.938 kB / 277.4 MB, free: 6.316 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.902e-06/0.07832, allocations: 0 / 277.4 MB, free: 6.316 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.07843, allocations: 4 kB / 277.4 MB, free: 6.312 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.07847, allocations: 15.89 kB / 277.4 MB, free: 6.297 MB / 234.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.000204/0.07869, allocations: 201.2 kB / 277.6 MB, free: 6.078 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.07873, allocations: 7.906 kB / 277.6 MB, free: 6.07 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.878e-05/0.07878, allocations: 12.38 kB / 277.6 MB, free: 6.055 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.67e-06/0.0788, allocations: 0 / 277.6 MB, free: 6.055 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.824e-06/0.07881, allocations: 0 / 277.6 MB, free: 6.055 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.791e-06/0.07882, allocations: 0 / 277.6 MB, free: 6.055 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002297/0.07906, allocations: 213.5 kB / 277.8 MB, free: 5.797 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.07908, allocations: 64 / 277.8 MB, free: 5.797 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.258e-05/0.0791, allocations: 11.94 kB / 277.8 MB, free: 5.785 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.685e-06/0.07912, allocations: 0 / 277.8 MB, free: 5.785 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.07914, allocations: 7.938 kB / 277.8 MB, free: 5.777 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.463e-06/0.07916, allocations: 0 / 277.8 MB, free: 5.777 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.97e-06/0.07917, allocations: 0 / 277.8 MB, free: 5.777 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004881/0.07966, allocations: 276.7 kB / 278.1 MB, free: 5.477 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.154e-05/0.07974, allocations: 89 kB / 278.2 MB, free: 5.371 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.634e-05/0.0798, allocations: 8 kB / 278.2 MB, free: 5.363 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.896e-05/0.07991, allocations: 12 kB / 278.2 MB, free: 5.352 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.788e-05/0.07998, allocations: 15.97 kB / 278.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.08001, allocations: 7.984 kB / 278.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of sorting global known variables: time 9.052e-05/0.08011, allocations: 99.27 kB / 278.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.2e-07/0.08013, allocations: 0 / 278.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003683/0.08051, allocations: 51.91 kB / 278.4 MB, free: 5.18 MB / 234.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.0002761/0.0808, allocations: 155.1 kB / 278.5 MB, free: 5.02 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004507/0.08126, allocations: 330.6 kB / 278.9 MB, free: 4.648 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.78e-06/0.08128, allocations: 0 / 278.9 MB, free: 4.648 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.08154, allocations: 198.7 kB / 279.1 MB, free: 4.43 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.08169, allocations: 11.89 kB / 279.1 MB, free: 4.418 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005498/0.08225, allocations: 271 kB / 279.3 MB, free: 4.121 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.08266, allocations: 0.7043 MB / 280 MB, free: 3.391 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.722e-05/0.0827, allocations: 11.44 kB / 280 MB, free: 3.383 MB / 234.7 MB Notification: Performance of SimCode: time 1.65e-06/0.08271, allocations: 0 / 280 MB, free: 3.383 MB / 234.7 MB Notification: Performance of Templates: time 0.004008/0.08673, allocations: 1.591 MB / 281.6 MB, free: 1.789 MB / 234.7 MB