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.736/1.736, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003632, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07789/0.07828, allocations: 44.51 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3301/0.4084, allocations: 71.63 MB / 380.1 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.4086, allocations: 60.66 kB / 380.1 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008305/0.4169, allocations: 2.14 MB / 382.3 MB, free: 18.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.417, allocations: 0 / 382.3 MB, free: 18.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.848e-06/0.417, allocations: 6.781 kB / 382.3 MB, free: 18.47 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.0003871/0.4174, allocations: 496.2 kB / 382.8 MB, free: 17.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.4175, allocations: 8.781 kB / 382.8 MB, free: 17.97 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.62e-05/0.4175, allocations: 15.88 kB / 382.8 MB, free: 17.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.842e-05/0.4176, allocations: 172.3 kB / 382.9 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.4177, allocations: 7.469 kB / 383 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.548e-05/0.4177, allocations: 6.969 kB / 383 MB, free: 17.76 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002188/0.4179, allocations: 94.47 kB / 383.1 MB, free: 17.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.186e-06/0.418, allocations: 0.9688 kB / 383.1 MB, free: 17.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.418, allocations: 9.625 kB / 383.1 MB, free: 17.72 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.484e-06/0.418, allocations: 1.219 kB / 383.1 MB, free: 17.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.4181, allocations: 52.52 kB / 383.1 MB, free: 17.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004672/0.4186, allocations: 341.7 kB / 383.4 MB, free: 17.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.4188, allocations: 74.42 kB / 383.5 MB, free: 17.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.4188, allocations: 1.938 kB / 383.5 MB, free: 17.42 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.419, allocations: 164.4 kB / 383.7 MB, free: 17.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.519e-06/0.419, allocations: 0 / 383.7 MB, free: 17.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005428/0.4196, allocations: 412.8 kB / 384.1 MB, free: 17.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.782e-05/0.4197, allocations: 173.3 kB / 384.3 MB, free: 16.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.4198, allocations: 125.1 kB / 384.4 MB, free: 16.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.4198, allocations: 35.98 kB / 384.4 MB, free: 16.69 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.188e-05/0.4199, allocations: 158.2 kB / 384.6 MB, free: 16.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.098e-05/0.4199, allocations: 32.92 kB / 384.6 MB, free: 16.53 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.335e-06/0.42, allocations: 1.75 kB / 384.6 MB, free: 16.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.333e-05/0.42, allocations: 317.1 kB / 384.9 MB, free: 16.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.13e-05/0.4201, allocations: 36.28 kB / 384.9 MB, free: 16.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.539e-05/0.4202, allocations: 40.22 kB / 385 MB, free: 16.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.4203, allocations: 144.1 kB / 385.1 MB, free: 16.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.188e-06/0.4204, allocations: 1.094 kB / 385.1 MB, free: 16.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003675/0.4207, allocations: 270.5 kB / 385.4 MB, free: 15.92 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.516e-05/0.4208, allocations: 115.9 kB / 385.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-06/0.4208, allocations: 0 / 385.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.4209, allocations: 1 kB / 385.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.788e-05/0.4209, allocations: 4.906 kB / 385.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.528e-06/0.4209, allocations: 3.359 kB / 385.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.564e-05/0.421, allocations: 8.672 kB / 385.5 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.4211, allocations: 6.719 kB / 385.5 MB, free: 15.79 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.0001382/0.4212, allocations: 199.7 kB / 385.7 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.4213, allocations: 11.31 kB / 385.7 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.3e-05/0.4213, allocations: 15.55 kB / 385.7 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.478e-06/0.4213, allocations: 1.625 kB / 385.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.4213, allocations: 0 / 385.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.873e-06/0.4213, allocations: 0 / 385.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.4215, allocations: 213 kB / 386 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.122e-06/0.4215, allocations: 0 / 386 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.531e-06/0.4215, allocations: 5.203 kB / 386 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.826e-06/0.4216, allocations: 5.875 kB / 386 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.4216, allocations: 5.531 kB / 386 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.202e-06/0.4216, allocations: 1.906 kB / 386 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4216, allocations: 0 / 386 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00042/0.422, allocations: 279.2 kB / 386.2 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.757e-05/0.4221, allocations: 85.64 kB / 386.3 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.055e-05/0.4221, allocations: 4.906 kB / 386.3 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.4222, allocations: 13.81 kB / 386.4 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.624e-05/0.4223, allocations: 12.7 kB / 386.4 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.4223, allocations: 3.844 kB / 386.4 MB, free: 15.15 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.14e-05/0.4224, allocations: 104.4 kB / 386.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.85e-07/0.4224, allocations: 0 / 386.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004041/0.4228, allocations: 56.75 kB / 386.5 MB, free: 15.07 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.0002449/0.4231, allocations: 144.6 kB / 386.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003395/0.4235, allocations: 333.9 kB / 387 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.762e-06/0.4235, allocations: 0 / 387 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.4237, allocations: 194.1 kB / 387.2 MB, free: 14.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.4238, allocations: 8.078 kB / 387.2 MB, free: 14.59 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004942/0.4243, allocations: 275.9 kB / 387.5 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001623/0.4245, allocations: 0.7041 MB / 388.2 MB, free: 13.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.37e-05/0.4245, allocations: 15.5 kB / 388.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of SimCode: time 1.321e-06/0.4246, allocations: 0 / 388.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of Templates: time 0.003829/0.4284, allocations: 1.587 MB / 389.8 MB, free: 13.55 MB / 314.7 MB