Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 2.249/2.249, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.000377, allocations: 12 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0989/0.09931, allocations: 44.5 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4434/0.5427, allocations: 71.62 MB / 380.6 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.5431, allocations: 73.61 kB / 380.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01033/0.5534, allocations: 2.14 MB / 382.9 MB, free: 15.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.5535, allocations: 0 / 382.9 MB, free: 15.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.879e-06/0.5535, allocations: 2.094 kB / 382.9 MB, free: 15.07 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.0005387/0.554, allocations: 496.8 kB / 383.3 MB, free: 14.56 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.5541, allocations: 9.125 kB / 383.4 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.453e-05/0.5542, allocations: 15.16 kB / 383.4 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.5543, allocations: 172 kB / 383.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.5543, allocations: 10.91 kB / 383.6 MB, free: 14.35 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/0.5544, allocations: 13.95 kB / 383.6 MB, free: 14.35 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002794/0.5547, allocations: 92.67 kB / 383.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.5547, allocations: 0 / 383.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.5547, allocations: 2.781 kB / 383.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.5547, allocations: 1.375 kB / 383.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001531/0.5549, allocations: 50.98 kB / 383.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005862/0.5555, allocations: 347 kB / 384 MB, free: 14.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.5557, allocations: 73.52 kB / 384.1 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.5557, allocations: 1.469 kB / 384.1 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002562/0.556, allocations: 164.5 kB / 384.3 MB, free: 13.9 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 3.116e-06/0.556, allocations: 0 / 384.3 MB, free: 13.9 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007112/0.5567, allocations: 421.9 kB / 384.7 MB, free: 13.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.103e-05/0.5568, allocations: 176.8 kB / 384.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.557, allocations: 135.4 kB / 385 MB, free: 13.31 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.557, allocations: 29.83 kB / 385 MB, free: 13.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.809e-05/0.5571, allocations: 94.19 kB / 385.1 MB, free: 13.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.172e-05/0.5571, allocations: 22.73 kB / 385.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.038e-05/0.5572, allocations: 1.375 kB / 385.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.552e-05/0.5572, allocations: 325.6 kB / 385.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.5573, allocations: 36.38 kB / 385.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.989e-05/0.5574, allocations: 37.27 kB / 385.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.5576, allocations: 146.8 kB / 385.7 MB, free: 12.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.5576, allocations: 3.938 kB / 385.7 MB, free: 12.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004347/0.5581, allocations: 265.9 kB / 385.9 MB, free: 12.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.034e-05/0.5581, allocations: 119.7 kB / 386.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.5582, allocations: 0 / 386.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.5582, allocations: 1.375 kB / 386.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.575e-05/0.5582, allocations: 1.375 kB / 386.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.046e-06/0.5583, allocations: 3.953 kB / 386.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.5584, allocations: 19.39 kB / 386.1 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.937e-05/0.5585, allocations: 9.484 kB / 386.1 MB, free: 12.43 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.0002474/0.5587, allocations: 198.1 kB / 386.3 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.612e-05/0.5588, allocations: 14.72 kB / 386.3 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.36e-05/0.5589, allocations: 13.2 kB / 386.3 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.5589, allocations: 0 / 386.3 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.5589, allocations: 0 / 386.3 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.5589, allocations: 9.328 kB / 386.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002832/0.5592, allocations: 204.1 kB / 386.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.5593, allocations: 1.375 kB / 386.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.001e-05/0.5593, allocations: 0 / 386.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.143e-06/0.5593, allocations: 1.375 kB / 386.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.535e-05/0.5594, allocations: 6.562 kB / 386.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.5594, allocations: 0 / 386.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5594, allocations: 0 / 386.5 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005304/0.5599, allocations: 282.4 kB / 386.8 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.846e-05/0.56, allocations: 90.34 kB / 386.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.742e-05/0.5601, allocations: 9.438 kB / 386.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.5602, allocations: 10.41 kB / 386.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.544e-05/0.5603, allocations: 11.77 kB / 386.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.5603, allocations: 5.5 kB / 386.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.765e-05/0.5604, allocations: 99.31 kB / 387 MB, free: 11.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.5605, allocations: 1.375 kB / 387 MB, free: 11.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004542/0.5609, allocations: 55.03 kB / 387.1 MB, free: 11.72 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.00031/0.5612, allocations: 144 kB / 387.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004364/0.5617, allocations: 332.4 kB / 387.5 MB, free: 11.37 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5617, allocations: 0 / 387.5 MB, free: 11.37 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002152/0.5619, allocations: 194.8 kB / 387.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.5621, allocations: 14.83 kB / 387.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006332/0.5628, allocations: 256.1 kB / 388 MB, free: 11.08 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001835/0.563, allocations: 0.7016 MB / 388.7 MB, free: 10.39 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.978e-05/0.563, allocations: 9.016 kB / 388.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.553e-05/0.563, allocations: 9.938 kB / 388.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/0.563, allocations: 1.5 kB / 388.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of Templates: time 0.005802/0.5689, allocations: 1.412 MB / 390.1 MB, free: 10.23 MB / 314.7 MB