Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.BooleanNetwork1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadModel(Modelica): time 1.89/1.89, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003526, allocations: 11.98 kB / 233.2 MB, free: 3.086 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07023/0.07061, allocations: 38.77 MB / 271.9 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00278/0.07344, allocations: 1.675 MB / 273.6 MB, free: 10.54 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.07536, allocations: 0.8072 MB / 274.4 MB, free: 9.727 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.07555, allocations: 11.94 kB / 274.4 MB, free: 9.715 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.0757, allocations: 27.72 kB / 274.4 MB, free: 9.688 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001506/0.07587, allocations: 47.73 kB / 274.5 MB, free: 9.641 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006925/0.07658, allocations: 167.6 kB / 274.6 MB, free: 9.477 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000333/0.07693, allocations: 212.5 kB / 274.9 MB, free: 9.27 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003203/0.07726, allocations: 140.9 kB / 275 MB, free: 9.129 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.07741, allocations: 95.56 kB / 275.1 MB, free: 9.035 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.07759, allocations: 103.4 kB / 275.2 MB, free: 8.934 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.988e-05/0.07764, allocations: 8 kB / 275.2 MB, free: 8.926 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002295/0.07788, allocations: 79.88 kB / 275.3 MB, free: 8.848 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.838e-05/0.07799, allocations: 55.77 kB / 275.3 MB, free: 8.793 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.07811, allocations: 81.52 kB / 275.4 MB, free: 8.707 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004338/0.07856, allocations: 275.6 kB / 275.7 MB, free: 8.438 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.907e-06/0.07858, allocations: 0 / 275.7 MB, free: 8.438 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.016e-06/0.07859, allocations: 0 / 275.7 MB, free: 8.438 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.578e-06/0.07861, allocations: 0 / 275.7 MB, free: 8.438 MB / 234.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.001178/0.07979, allocations: 0.6852 MB / 276.4 MB, free: 7.688 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.07984, allocations: 8.031 kB / 276.4 MB, free: 7.68 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.07997, allocations: 47.53 kB / 276.4 MB, free: 7.633 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004736/0.08046, allocations: 293.4 kB / 276.7 MB, free: 7.305 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.625e-05/0.08057, allocations: 62.25 kB / 276.8 MB, free: 7.238 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.281e-05/0.08066, allocations: 36 kB / 276.8 MB, free: 7.203 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008368/0.08151, allocations: 409.8 kB / 277.2 MB, free: 6.766 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.08155, allocations: 3.984 kB / 277.2 MB, free: 6.762 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.976e-05/0.08161, allocations: 16 kB / 277.2 MB, free: 6.746 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.363e-05/0.08165, allocations: 12.44 kB / 277.2 MB, free: 6.734 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006459/0.08231, allocations: 257.5 kB / 277.5 MB, free: 6.48 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002475/0.0848, allocations: 1.604 MB / 279.1 MB, free: 4.793 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006727/0.0855, allocations: 272 kB / 279.4 MB, free: 4.5 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.189e-05/0.08558, allocations: 11.91 kB / 279.4 MB, free: 4.488 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006683/0.08627, allocations: 357.3 kB / 279.7 MB, free: 4.094 MB / 234.7 MB Notification: Performance of pre-optimization done (n=36): time 6.588e-06/0.08629, allocations: 0 / 279.7 MB, free: 4.094 MB / 234.7 MB Notification: Performance of matching and sorting (n=36): time 0.001432/0.08774, allocations: 0.6734 MB / 280.4 MB, free: 3.367 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/0.08792, allocations: 203.9 kB / 280.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/0.08835, allocations: 290.3 kB / 280.9 MB, free: 2.832 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.723e-05/0.08842, allocations: 37.7 kB / 280.9 MB, free: 2.789 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/0.08863, allocations: 243.1 kB / 281.1 MB, free: 2.551 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.08875, allocations: 82.97 kB / 281.2 MB, free: 2.469 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.914e-05/0.08879, allocations: 12 kB / 281.2 MB, free: 2.457 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.08898, allocations: 326.8 kB / 281.6 MB, free: 2.129 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003127/0.0893, allocations: 113.1 kB / 281.7 MB, free: 2.02 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.08974, allocations: 248.1 kB / 281.9 MB, free: 1.723 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004072/0.09016, allocations: 217.1 kB / 282.1 MB, free: 1.492 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.09018, allocations: 0 / 282.1 MB, free: 1.492 MB / 234.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001088/0.09128, allocations: 0.5099 MB / 282.6 MB, free: 0.957 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.778e-05/0.09139, allocations: 89.09 kB / 282.7 MB, free: 0.8516 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.09141, allocations: 4 kB / 282.7 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.9e-05/0.09145, allocations: 12.03 kB / 282.7 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.0916, allocations: 35.86 kB / 282.8 MB, free: 0.8008 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.09163, allocations: 8.391 kB / 282.8 MB, free: 0.793 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003074/0.09195, allocations: 67.5 kB / 282.8 MB, free: 0.7266 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.98e-05/0.09202, allocations: 24 kB / 282.9 MB, free: 0.7031 MB / 234.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,sampleTriggerSet.y,sampleTriggerReset.y,$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.0003816/0.09241, allocations: 249.1 kB / 283.1 MB, free: 448 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.472e-05/0.09251, allocations: 35.62 kB / 283.1 MB, free: 412 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006405/0.09316, allocations: 255.5 kB / 283.4 MB, free: 156 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.733e-06/0.09319, allocations: 4 kB / 283.4 MB, free: 152 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.09321, allocations: 0 / 283.4 MB, free: 152 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.09323, allocations: 11.94 kB / 283.4 MB, free: 140 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001907/0.09515, allocations: 1.004 MB / 284.4 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.303e-06/0.09518, allocations: 0 / 284.4 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.371e-05/0.09526, allocations: 12 kB / 284.4 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.416e-06/0.09528, allocations: 3.953 kB / 284.4 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.438e-05/0.09533, allocations: 15.98 kB / 284.4 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.494e-06/0.09535, allocations: 3.938 kB / 284.4 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.995e-06/0.09537, allocations: 4 kB / 284.4 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.09646, allocations: 0.623 MB / 285.1 MB, free: 14.37 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.09658, allocations: 108.7 kB / 285.2 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.048e-05/0.09667, allocations: 19.89 kB / 285.2 MB, free: 14.22 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003205/0.09701, allocations: 35.97 kB / 285.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.09717, allocations: 39.94 kB / 285.3 MB, free: 14.15 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.955e-05/0.09723, allocations: 12 kB / 285.3 MB, free: 14.14 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002374/0.09748, allocations: 178 kB / 285.5 MB, free: 13.96 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.79e-07/0.09749, allocations: 3.938 kB / 285.5 MB, free: 13.96 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006999/0.09821, allocations: 111.8 kB / 285.6 MB, free: 13.85 MB / 250.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,sampleTriggerSet.y,sampleTriggerReset.y,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 (falling.not_u,rising.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.0003292/0.09855, allocations: 165.7 kB / 285.7 MB, free: 13.68 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0009834/0.09955, allocations: 0.4978 MB / 286.2 MB, free: 13.15 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.09957, allocations: 0.875 kB / 286.2 MB, free: 13.15 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00054/0.1001, allocations: 317.9 kB / 286.5 MB, free: 12.82 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004702/0.1006, allocations: 48.61 kB / 286.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.1023, allocations: 0.7462 MB / 287.3 MB, free: 11.98 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005686/0.1029, allocations: 0.7958 MB / 288.1 MB, free: 11.16 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.1031, allocations: 43.36 kB / 288.2 MB, free: 11.11 MB / 250.7 MB Notification: Performance of SimCode: time 1.657e-06/0.1031, allocations: 0 / 288.2 MB, free: 11.11 MB / 250.7 MB Notification: Performance of Templates: time 0.009821/0.1129, allocations: 4.568 MB / 292.7 MB, free: 6.547 MB / 250.7 MB