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.BooleanNetwork1.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.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadModel(Modelica): time 2.067/2.067, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004859/0.0004857, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09749/0.09801, allocations: 44.5 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3954/0.4935, allocations: 75.18 MB / 384.1 MB, free: 14.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.4938, allocations: 71.98 kB / 384.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02153/0.5154, allocations: 4.998 MB / 389.2 MB, free: 14.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.5154, allocations: 0 / 389.2 MB, free: 14.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.417e-05/0.5155, allocations: 11.66 kB / 389.2 MB, free: 14.26 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001256/0.5168, allocations: 0.6823 MB / 389.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.5168, allocations: 11.69 kB / 389.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.517, allocations: 42.88 kB / 390 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005344/0.5175, allocations: 302 kB / 390.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-05/0.5176, allocations: 62.52 kB / 390.3 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.699e-05/0.5177, allocations: 40.25 kB / 390.4 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009068/0.5186, allocations: 404.9 kB / 390.7 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.5187, allocations: 0 / 390.7 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.681e-05/0.5187, allocations: 14.78 kB / 390.8 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.305e-05/0.5188, allocations: 12.22 kB / 390.8 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000682/0.5195, allocations: 246.6 kB / 391 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002439/0.5219, allocations: 1.574 MB / 392.6 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000737/0.5227, allocations: 287.2 kB / 392.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.036e-05/0.5228, allocations: 10.55 kB / 392.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000605/0.5235, allocations: 351.3 kB / 393.2 MB, free: 11.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.196e-06/0.5235, allocations: 0 / 393.2 MB, free: 11.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.00142/0.5249, allocations: 0.6691 MB / 393.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.938e-05/0.525, allocations: 197 kB / 394.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004459/0.5255, allocations: 291.1 kB / 394.4 MB, free: 11.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.791e-05/0.5256, allocations: 39.84 kB / 394.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.5257, allocations: 240.8 kB / 394.6 MB, free: 11.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.957e-05/0.5259, allocations: 85.56 kB / 394.7 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.5259, allocations: 7.25 kB / 394.7 MB, free: 11.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.532e-05/0.526, allocations: 326.8 kB / 395.1 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/0.5263, allocations: 119.2 kB / 395.2 MB, free: 10.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/0.5268, allocations: 246.8 kB / 395.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004024/0.5272, allocations: 227 kB / 395.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.5272, allocations: 0 / 395.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001071/0.5283, allocations: 0.5042 MB / 396.1 MB, free: 10.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.742e-05/0.5284, allocations: 98.09 kB / 396.2 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.5284, allocations: 3.875 kB / 396.2 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.893e-05/0.5284, allocations: 11.7 kB / 396.2 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.5286, allocations: 36.25 kB / 396.3 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/0.5286, allocations: 4.312 kB / 396.3 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003578/0.529, allocations: 40.27 kB / 396.3 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.82e-05/0.5291, allocations: 26.38 kB / 396.3 MB, free: 10.15 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.onDelay.u,$PRE.onDelay.t_next,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 3 * 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.0003949/0.5295, allocations: 247.4 kB / 396.6 MB, free: 9.965 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.239e-05/0.5296, allocations: 38.53 kB / 396.6 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006857/0.5303, allocations: 257.1 kB / 396.9 MB, free: 9.898 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.5303, allocations: 3.844 kB / 396.9 MB, free: 9.898 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.5303, allocations: 3.953 kB / 396.9 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.5303, allocations: 0 / 396.9 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.5321, allocations: 1.003 MB / 397.9 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.5322, allocations: 3.781 kB / 397.9 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.73e-05/0.5323, allocations: 10.52 kB / 397.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/0.5323, allocations: 3.625 kB / 397.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.12e-05/0.5323, allocations: 18.05 kB / 397.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.5324, allocations: 0 / 397.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.5324, allocations: 0 / 397.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.5334, allocations: 0.6213 MB / 398.5 MB, free: 9.125 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.273e-05/0.5335, allocations: 107.2 kB / 398.7 MB, free: 9.012 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.684e-05/0.5336, allocations: 13.22 kB / 398.7 MB, free: 9.012 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003586/0.534, allocations: 32.41 kB / 398.7 MB, free: 9.008 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.5342, allocations: 43.12 kB / 398.7 MB, free: 9.004 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.589e-05/0.5342, allocations: 17.34 kB / 398.8 MB, free: 9.004 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002255/0.5345, allocations: 174.7 kB / 398.9 MB, free: 8.922 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5345, allocations: 0 / 398.9 MB, free: 8.922 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007206/0.5352, allocations: 97.62 kB / 399 MB, free: 8.918 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 38 (onDelay.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulsStart,booleanPulse2.pulsStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 14 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,rSFlipFlop.pre.u,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay.t_next,onDelay.delaySignal,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 3 * 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.0003269/0.5355, allocations: 181.5 kB / 399.2 MB, free: 8.809 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009906/0.5365, allocations: 0.4912 MB / 399.7 MB, free: 8.605 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.5366, allocations: 0.875 kB / 399.7 MB, free: 8.605 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005075/0.5371, allocations: 313.8 kB / 400 MB, free: 8.469 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005958/0.5377, allocations: 48.34 kB / 400 MB, free: 8.465 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001655/0.5394, allocations: 0.7274 MB / 400.8 MB, free: 8.062 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.5397, allocations: 0.8066 MB / 401.6 MB, free: 7.359 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001761/0.5399, allocations: 30.31 kB / 401.6 MB, free: 7.352 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5399, allocations: 0 / 401.6 MB, free: 7.352 MB / 314.7 MB Notification: Performance of Templates: time 0.01127/0.5512, allocations: 4.557 MB / 406.2 MB, free: 6.855 MB / 314.7 MB