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.BooleanNetwork1.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.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 1.949/1.949, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003675, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08032/0.08072, allocations: 44.51 MB / 308.3 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002746/0.0835, allocations: 1.675 MB / 310 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001845/0.08539, allocations: 0.8272 MB / 310.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.08558, allocations: 8 kB / 310.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.08574, allocations: 27.72 kB / 310.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001533/0.0859, allocations: 43.81 kB / 310.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007287/0.08665, allocations: 171.6 kB / 311.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003375/0.087, allocations: 204.6 kB / 311.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003061/0.08732, allocations: 136.9 kB / 311.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.08748, allocations: 95.56 kB / 311.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.08765, allocations: 107.3 kB / 311.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.224e-05/0.08771, allocations: 12 kB / 311.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002238/0.08794, allocations: 67.95 kB / 311.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.553e-05/0.08806, allocations: 59.75 kB / 311.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.08819, allocations: 81.45 kB / 311.8 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004299/0.08863, allocations: 271.6 kB / 312.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.754e-06/0.08865, allocations: 0 / 312.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.001e-06/0.08866, allocations: 0 / 312.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.08868, allocations: 0 / 312.1 MB, free: 13.24 MB / 266.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.001194/0.08989, allocations: 0.6736 MB / 312.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.992e-05/0.08994, allocations: 8.031 kB / 312.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.09007, allocations: 51.42 kB / 312.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004855/0.09057, allocations: 305.3 kB / 313.1 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.776e-05/0.09069, allocations: 54.36 kB / 313.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.425e-05/0.09078, allocations: 40 kB / 313.2 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008361/0.09162, allocations: 401.8 kB / 313.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.872e-05/0.09166, allocations: 7.938 kB / 313.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.547e-05/0.09172, allocations: 20 kB / 313.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.318e-05/0.09177, allocations: 12.44 kB / 313.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006482/0.09243, allocations: 257.5 kB / 313.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002527/0.09497, allocations: 1.604 MB / 315.5 MB, free: 9.594 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006946/0.0957, allocations: 279.9 kB / 315.8 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.165e-05/0.09579, allocations: 11.94 kB / 315.8 MB, free: 9.281 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006665/0.09647, allocations: 349.1 kB / 316.1 MB, free: 8.895 MB / 266.7 MB Notification: Performance of pre-optimization done (n=36): time 3.562e-06/0.09649, allocations: 0 / 316.1 MB, free: 8.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=36): time 0.001424/0.09792, allocations: 0.6717 MB / 316.8 MB, free: 8.172 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/0.09809, allocations: 195.9 kB / 317 MB, free: 7.938 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004177/0.09852, allocations: 294.3 kB / 317.3 MB, free: 7.637 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.982e-05/0.0986, allocations: 37.7 kB / 317.3 MB, free: 7.594 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.09881, allocations: 243.2 kB / 317.6 MB, free: 7.355 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.09893, allocations: 79.08 kB / 317.6 MB, free: 7.277 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.852e-05/0.09897, allocations: 15.94 kB / 317.7 MB, free: 7.262 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.09916, allocations: 326.8 kB / 318 MB, free: 6.934 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.09949, allocations: 117.1 kB / 318.1 MB, free: 6.816 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004201/0.09993, allocations: 240.1 kB / 318.3 MB, free: 6.531 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004147/0.1004, allocations: 225 kB / 318.5 MB, free: 6.293 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.019e-06/0.1004, allocations: 4 kB / 318.6 MB, free: 6.289 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001105/0.1015, allocations: 0.514 MB / 319.1 MB, free: 5.75 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.752e-05/0.1016, allocations: 97.05 kB / 319.2 MB, free: 5.637 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.1016, allocations: 4 kB / 319.2 MB, free: 5.633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.515e-05/0.1017, allocations: 8 kB / 319.2 MB, free: 5.625 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.1018, allocations: 31.92 kB / 319.2 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.1019, allocations: 7.938 kB / 319.2 MB, free: 5.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/0.1022, allocations: 59.91 kB / 319.3 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.055e-05/0.1023, allocations: 20 kB / 319.3 MB, free: 5.508 MB / 266.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.0003793/0.1026, allocations: 261.2 kB / 319.5 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.916e-05/0.1028, allocations: 35.62 kB / 319.6 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000659/0.1034, allocations: 259.7 kB / 319.8 MB, free: 4.938 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.792e-06/0.1035, allocations: 4 kB / 319.8 MB, free: 4.934 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.43e-06/0.1035, allocations: 4 kB / 319.8 MB, free: 4.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.402e-06/0.1035, allocations: 3.984 kB / 319.8 MB, free: 4.926 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001893/0.1054, allocations: 0.9966 MB / 320.8 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.258e-06/0.1054, allocations: 11.92 kB / 320.9 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.33e-05/0.1055, allocations: 11.94 kB / 320.9 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.856e-06/0.1055, allocations: 0 / 320.9 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.647e-05/0.1056, allocations: 15.98 kB / 320.9 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.216e-06/0.1056, allocations: 4 kB / 320.9 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.428e-06/0.1056, allocations: 0 / 320.9 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.1067, allocations: 0.6272 MB / 321.5 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.1068, allocations: 108.7 kB / 321.6 MB, free: 3.031 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.967e-05/0.1069, allocations: 12 kB / 321.6 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000318/0.1073, allocations: 39.91 kB / 321.7 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.1074, allocations: 39.8 kB / 321.7 MB, free: 2.941 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.353e-05/0.1075, allocations: 16 kB / 321.7 MB, free: 2.926 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000245/0.1077, allocations: 182 kB / 321.9 MB, free: 2.746 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.1078, allocations: 0 / 321.9 MB, free: 2.746 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006919/0.1085, allocations: 103.8 kB / 322 MB, free: 2.645 MB / 266.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.0003399/0.1088, allocations: 169.3 kB / 322.2 MB, free: 2.473 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001/0.1098, allocations: 0.5018 MB / 322.7 MB, free: 1.934 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.842e-06/0.1098, allocations: 0 / 322.7 MB, free: 1.934 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005361/0.1104, allocations: 314.1 kB / 323 MB, free: 1.605 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004753/0.1109, allocations: 45.36 kB / 323 MB, free: 1.562 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.1125, allocations: 0.7422 MB / 323.8 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000564/0.1131, allocations: 0.7998 MB / 324.6 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.1133, allocations: 35.42 kB / 324.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of SimCode: time 1.836e-06/0.1133, allocations: 4 kB / 324.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of Templates: time 0.01015/0.1235, allocations: 4.575 MB / 329.2 MB, free: 11.34 MB / 282.7 MB