Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.LogicalNetwork1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.876/1.876, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003772/0.0003774, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07935/0.07975, allocations: 44.51 MB / 308.3 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001799/0.0816, allocations: 1.152 MB / 309.5 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.08275, allocations: 0.5623 MB / 310.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.555e-05/0.08281, allocations: 4 kB / 310.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.562e-05/0.08286, allocations: 3.938 kB / 310.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.842e-05/0.08294, allocations: 4 kB / 310.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006202/0.08357, allocations: 127.8 kB / 310.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.667e-05/0.08369, allocations: 47.89 kB / 310.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.683e-05/0.08379, allocations: 23.97 kB / 310.3 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.143e-05/0.08385, allocations: 27.92 kB / 310.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.355e-05/0.08393, allocations: 27.84 kB / 310.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.01e-05/0.08396, allocations: 4 kB / 310.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.08416, allocations: 83.86 kB / 310.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.305e-05/0.08422, allocations: 15.92 kB / 310.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.756e-05/0.08429, allocations: 41.64 kB / 310.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002009/0.08451, allocations: 107.8 kB / 310.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.659e-06/0.08453, allocations: 0 / 310.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.041e-06/0.08454, allocations: 0 / 310.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.926e-06/0.08456, allocations: 0 / 310.6 MB, free: 14.79 MB / 266.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.0005419/0.08511, allocations: 490.2 kB / 311 MB, free: 14.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.08515, allocations: 8.031 kB / 311.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.062e-05/0.08522, allocations: 11.91 kB / 311.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.08539, allocations: 178.9 kB / 311.2 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.08543, allocations: 4 kB / 311.2 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.562e-05/0.08547, allocations: 16 kB / 311.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002423/0.08572, allocations: 97.58 kB / 311.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.886e-06/0.08575, allocations: 0 / 311.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.08578, allocations: 4 kB / 311.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.583e-06/0.08579, allocations: 4 kB / 311.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/0.08594, allocations: 43.98 kB / 311.4 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000584/0.08654, allocations: 356.5 kB / 311.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.08672, allocations: 62.56 kB / 311.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.08676, allocations: 4 kB / 311.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003097/0.08708, allocations: 158.8 kB / 312 MB, free: 13.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 2.445e-06/0.0871, allocations: 0 / 312 MB, free: 13.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006788/0.08778, allocations: 423.5 kB / 312.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.08793, allocations: 166.2 kB / 312.6 MB, free: 12.51 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.0881, allocations: 134 kB / 312.7 MB, free: 12.37 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.08814, allocations: 33.7 kB / 312.7 MB, free: 12.33 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.08826, allocations: 166.5 kB / 312.9 MB, free: 12.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.434e-05/0.08832, allocations: 31.81 kB / 312.9 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.042e-05/0.08835, allocations: 0 / 312.9 MB, free: 12.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.08851, allocations: 318.8 kB / 313.2 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.478e-05/0.08861, allocations: 31.98 kB / 313.3 MB, free: 11.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.801e-05/0.08872, allocations: 47.89 kB / 313.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.08889, allocations: 138.8 kB / 313.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.651e-06/0.08891, allocations: 0 / 313.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004078/0.08932, allocations: 261.2 kB / 313.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.08944, allocations: 116.1 kB / 313.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.08946, allocations: 3.984 kB / 313.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.08949, allocations: 3.953 kB / 313.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.951e-05/0.08953, allocations: 4 kB / 313.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.754e-06/0.08954, allocations: 0 / 313.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.08966, allocations: 15.91 kB / 313.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.904e-05/0.08969, allocations: 4 kB / 313.8 MB, free: 11.12 MB / 266.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.0002087/0.08992, allocations: 197.2 kB / 314 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.407e-05/0.08996, allocations: 11.91 kB / 314 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.404e-05/0.09001, allocations: 8.375 kB / 314 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.6e-06/0.09002, allocations: 0 / 314 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/0.09004, allocations: 3.953 kB / 314 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.09006, allocations: 4 kB / 314.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002344/0.0903, allocations: 209.5 kB / 314.3 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.557e-06/0.09032, allocations: 0 / 314.3 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.73e-06/0.09034, allocations: 0 / 314.3 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.68e-06/0.09035, allocations: 0 / 314.3 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.09038, allocations: 8.062 kB / 314.3 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.044e-06/0.0904, allocations: 4 kB / 314.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.09041, allocations: 3.984 kB / 314.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005019/0.09092, allocations: 280.2 kB / 314.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.673e-05/0.09101, allocations: 97 kB / 314.6 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.489e-05/0.09108, allocations: 4 kB / 314.6 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.856e-05/0.09119, allocations: 11.94 kB / 314.7 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.876e-05/0.09127, allocations: 11.98 kB / 314.7 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.0913, allocations: 7.984 kB / 314.7 MB, free: 10.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.63e-05/0.09141, allocations: 103.2 kB / 314.8 MB, free: 10.05 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.09142, allocations: 0 / 314.8 MB, free: 10.05 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003693/0.0918, allocations: 48 kB / 314.8 MB, free: 10.01 MB / 266.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.000298/0.09211, allocations: 155.1 kB / 315 MB, free: 9.844 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004557/0.09259, allocations: 325.6 kB / 315.3 MB, free: 9.477 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.411e-06/0.09261, allocations: 0 / 315.3 MB, free: 9.477 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002416/0.09286, allocations: 198.7 kB / 315.5 MB, free: 9.258 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.09302, allocations: 11.94 kB / 315.5 MB, free: 9.246 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006043/0.09364, allocations: 271 kB / 315.8 MB, free: 8.953 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.09406, allocations: 0.7043 MB / 316.5 MB, free: 8.223 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.016e-05/0.09411, allocations: 11.44 kB / 316.5 MB, free: 8.211 MB / 266.7 MB Notification: Performance of SimCode: time 1.705e-06/0.09412, allocations: 0 / 316.5 MB, free: 8.211 MB / 266.7 MB Notification: Performance of Templates: time 0.00414/0.09827, allocations: 1.587 MB / 318.1 MB, free: 6.625 MB / 266.7 MB