Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.174/2.174, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.000355, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09801/0.09839, allocations: 44.5 MB / 309 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4123/0.5108, allocations: 71.62 MB / 380.6 MB, free: 14.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.5111, allocations: 69.66 kB / 380.6 MB, free: 14.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01004/0.5211, allocations: 2.14 MB / 382.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.5212, allocations: 0 / 382.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.876e-05/0.5212, allocations: 1.469 kB / 382.8 MB, free: 14.38 MB / 314.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.0004971/0.5217, allocations: 499.9 kB / 383.3 MB, free: 13.87 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.5218, allocations: 10.06 kB / 383.3 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.476e-05/0.5219, allocations: 15.58 kB / 383.3 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.522, allocations: 172.6 kB / 383.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.522, allocations: 3.281 kB / 383.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.17e-05/0.522, allocations: 16.77 kB / 383.5 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002663/0.5223, allocations: 90.31 kB / 383.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.5223, allocations: 1.188 kB / 383.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.5224, allocations: 2.125 kB / 383.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.5224, allocations: 2.156 kB / 383.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001562/0.5226, allocations: 59.19 kB / 383.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005595/0.5231, allocations: 346 kB / 384 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001869/0.5233, allocations: 75.31 kB / 384 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.5234, allocations: 0 / 384 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002675/0.5236, allocations: 160.1 kB / 384.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 1.943e-06/0.5237, allocations: 0 / 384.2 MB, free: 13.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006416/0.5243, allocations: 419.4 kB / 384.6 MB, free: 12.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.5244, allocations: 174.4 kB / 384.8 MB, free: 12.71 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.5245, allocations: 136.6 kB / 384.9 MB, free: 12.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.5246, allocations: 29.3 kB / 384.9 MB, free: 12.58 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.878e-05/0.5246, allocations: 161.3 kB / 385.1 MB, free: 12.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.397e-05/0.5247, allocations: 30.62 kB / 385.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.036e-05/0.5247, allocations: 3.938 kB / 385.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.9e-05/0.5248, allocations: 314.7 kB / 385.4 MB, free: 12.1 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.5249, allocations: 39.59 kB / 385.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.525, allocations: 42.11 kB / 385.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001383/0.5251, allocations: 143.8 kB / 385.7 MB, free: 11.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.5252, allocations: 1.469 kB / 385.7 MB, free: 11.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004139/0.5256, allocations: 262.5 kB / 385.9 MB, free: 11.81 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.742e-05/0.5257, allocations: 120 kB / 386 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.5257, allocations: 1.5 kB / 386 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.5257, allocations: 1.625 kB / 386 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.459e-05/0.5258, allocations: 5.281 kB / 386 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.5258, allocations: 5.453 kB / 386 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.5259, allocations: 14.03 kB / 386.1 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.526, allocations: 6.344 kB / 386.1 MB, free: 11.67 MB / 314.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.0001723/0.5261, allocations: 190 kB / 386.3 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.396e-05/0.5262, allocations: 14.73 kB / 386.3 MB, free: 11.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.584e-05/0.5262, allocations: 10.98 kB / 386.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.5262, allocations: 1.094 kB / 386.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5263, allocations: 0 / 386.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.5263, allocations: 10.08 kB / 386.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001814/0.5265, allocations: 211 kB / 386.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.5265, allocations: 2.312 kB / 386.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.776e-06/0.5265, allocations: 1.062 kB / 386.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.858e-06/0.5265, allocations: 1 kB / 386.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.5265, allocations: 5.172 kB / 386.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.5265, allocations: 3.938 kB / 386.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.5266, allocations: 0 / 386.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005009/0.5271, allocations: 286.2 kB / 386.8 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.434e-05/0.5271, allocations: 83.3 kB / 386.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.774e-05/0.5272, allocations: 6.125 kB / 386.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.5273, allocations: 14.56 kB / 386.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.513e-05/0.5274, allocations: 7.625 kB / 386.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.944e-05/0.5275, allocations: 8.375 kB / 386.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.166e-05/0.5275, allocations: 104 kB / 387 MB, free: 10.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5276, allocations: 0 / 387 MB, free: 10.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004334/0.528, allocations: 53.53 kB / 387.1 MB, free: 10.95 MB / 314.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.0002844/0.5283, allocations: 151.1 kB / 387.2 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004279/0.5287, allocations: 329.4 kB / 387.5 MB, free: 10.6 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5288, allocations: 0 / 387.5 MB, free: 10.6 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.529, allocations: 193.5 kB / 387.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000151/0.5291, allocations: 7.734 kB / 387.7 MB, free: 10.47 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006133/0.5298, allocations: 288.1 kB / 388 MB, free: 10.28 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001663/0.53, allocations: 0.7035 MB / 388.7 MB, free: 9.586 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.909e-05/0.53, allocations: 11.56 kB / 388.7 MB, free: 9.578 MB / 314.7 MB Notification: Performance of SimCode: time 7.11e-07/0.53, allocations: 0 / 388.7 MB, free: 9.578 MB / 314.7 MB Notification: Performance of Templates: time 0.00632/0.5363, allocations: 1.575 MB / 390.3 MB, free: 9.426 MB / 314.7 MB