Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.853/1.853, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003803, allocations: 8 kB / 233.8 MB, free: 2.402 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1037, allocations: 38.78 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.402/0.5058, allocations: 66.31 MB / 338.9 MB, free: 7.062 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.5061, allocations: 71.03 kB / 339 MB, free: 7.027 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01009/0.5162, allocations: 2.152 MB / 341.1 MB, free: 5.098 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.073e-06/0.5162, allocations: 0 / 341.1 MB, free: 5.098 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.5163, allocations: 4 kB / 341.1 MB, free: 5.094 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.0006087/0.5169, allocations: 488 kB / 341.6 MB, free: 4.555 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.5169, allocations: 8.031 kB / 341.6 MB, free: 4.547 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.234e-05/0.517, allocations: 15.89 kB / 341.6 MB, free: 4.531 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.5172, allocations: 170.9 kB / 341.8 MB, free: 4.324 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.5172, allocations: 15.62 kB / 341.8 MB, free: 4.312 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/0.5173, allocations: 8 kB / 341.8 MB, free: 4.305 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002622/0.5175, allocations: 95.86 kB / 341.9 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.5176, allocations: 0 / 341.9 MB, free: 4.223 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.5176, allocations: 7.938 kB / 341.9 MB, free: 4.219 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.5176, allocations: 4 kB / 341.9 MB, free: 4.215 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001505/0.5178, allocations: 47.09 kB / 342 MB, free: 4.184 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006284/0.5184, allocations: 340.1 kB / 342.3 MB, free: 3.832 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.5186, allocations: 76.36 kB / 342.4 MB, free: 3.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.5187, allocations: 0 / 342.4 MB, free: 3.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002887/0.519, allocations: 167 kB / 342.6 MB, free: 3.602 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 1.863e-06/0.519, allocations: 4 kB / 342.6 MB, free: 3.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007257/0.5197, allocations: 416.2 kB / 343 MB, free: 3.184 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.5198, allocations: 169.6 kB / 343.1 MB, free: 2.984 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.52, allocations: 132.7 kB / 343.3 MB, free: 2.852 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.923e-05/0.5201, allocations: 33.33 kB / 343.3 MB, free: 2.816 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.5202, allocations: 103.2 kB / 343.4 MB, free: 2.719 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.232e-05/0.5203, allocations: 19.23 kB / 343.4 MB, free: 2.703 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.318e-05/0.5203, allocations: 3.938 kB / 343.4 MB, free: 2.703 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.5204, allocations: 334 kB / 343.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.5206, allocations: 34.05 kB / 343.8 MB, free: 2.348 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.5207, allocations: 38.41 kB / 343.8 MB, free: 2.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.5209, allocations: 144 kB / 344 MB, free: 2.172 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.5209, allocations: 0 / 344 MB, free: 2.172 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004812/0.5214, allocations: 270.6 kB / 344.2 MB, free: 1.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.5215, allocations: 114.8 kB / 344.3 MB, free: 1.773 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.5215, allocations: 7.984 kB / 344.3 MB, free: 1.766 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.5215, allocations: 0 / 344.3 MB, free: 1.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.88e-05/0.5216, allocations: 3.812 kB / 344.3 MB, free: 1.766 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.5216, allocations: 7.938 kB / 344.3 MB, free: 1.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.5217, allocations: 15.88 kB / 344.4 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.5218, allocations: 4 kB / 344.4 MB, free: 1.738 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.u2,And1.y,$PRE.Pre1.u,Pre1.u) * 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.0002166/0.522, allocations: 200.8 kB / 344.6 MB, free: 1.531 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-05/0.5221, allocations: 11.91 kB / 344.6 MB, free: 1.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.294e-05/0.5221, allocations: 11.5 kB / 344.6 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.5221, allocations: 0 / 344.6 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.5221, allocations: 4 kB / 344.6 MB, free: 1.504 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.5222, allocations: 0 / 344.6 MB, free: 1.504 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.5224, allocations: 213.8 kB / 344.8 MB, free: 1.262 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.5224, allocations: 0 / 344.8 MB, free: 1.262 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.636e-06/0.5224, allocations: 0 / 344.8 MB, free: 1.262 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.5224, allocations: 0 / 344.8 MB, free: 1.262 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.5225, allocations: 7.25 kB / 344.8 MB, free: 1.258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.5225, allocations: 3.984 kB / 344.8 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.5225, allocations: 0 / 344.8 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005554/0.5231, allocations: 288 kB / 345.1 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.648e-05/0.5232, allocations: 88.89 kB / 345.2 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.592e-05/0.5232, allocations: 7.188 kB / 345.2 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.5233, allocations: 15.98 kB / 345.2 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.604e-05/0.5234, allocations: 7.109 kB / 345.2 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.068e-05/0.5235, allocations: 9.75 kB / 345.2 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.29e-05/0.5236, allocations: 98.52 kB / 345.3 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5236, allocations: 0 / 345.3 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004/0.524, allocations: 50.56 kB / 345.4 MB, free: 0.7188 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.u2,And1.y,Pre1.u) * 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.0003447/0.5243, allocations: 150.3 kB / 345.5 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004839/0.5248, allocations: 329 kB / 345.8 MB, free: 236 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5249, allocations: 0 / 345.8 MB, free: 236 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002384/0.5251, allocations: 194.3 kB / 346 MB, free: 52 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001558/0.5253, allocations: 12.67 kB / 346 MB, free: 44 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006644/0.526, allocations: 254.6 kB / 346.3 MB, free: 15.79 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.5263, allocations: 0.7043 MB / 347 MB, free: 15.06 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.523e-05/0.5264, allocations: 0 / 347 MB, free: 15.06 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.758e-05/0.5264, allocations: 15.42 kB / 347 MB, free: 15.05 MB / 282.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5264, allocations: 4 kB / 347 MB, free: 15.04 MB / 282.7 MB Notification: Performance of Templates: time 0.006022/0.5325, allocations: 1.419 MB / 348.4 MB, free: 13.64 MB / 282.7 MB