Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Logical.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.index|table1.nextTime|table1.y|table2.index|table2.nextTime|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Logical") Notification: Performance of loadModel(ModelicaTest): time 1.859/1.859, allocations: 209.3 MB / 224.8 MB, free: 0.75 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004342/0.0004342, allocations: 8 kB / 282.5 MB, free: 9.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08625/0.08671, allocations: 48.71 MB / 331.2 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.002929/0.08969, allocations: 1.781 MB / 333 MB, free: 7.141 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.09144, allocations: 0.8147 MB / 333.8 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.0916, allocations: 4 kB / 333.8 MB, free: 6.316 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.017e-05/0.0917, allocations: 23.72 kB / 333.8 MB, free: 6.293 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001565/0.09187, allocations: 27.89 kB / 333.8 MB, free: 6.266 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008627/0.09274, allocations: 219.6 kB / 334 MB, free: 6.051 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003085/0.09307, allocations: 208.6 kB / 334.3 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003224/0.0934, allocations: 141.7 kB / 334.4 MB, free: 5.707 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.09363, allocations: 119.5 kB / 334.5 MB, free: 5.59 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002113/0.09386, allocations: 143.3 kB / 334.6 MB, free: 5.449 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.995e-05/0.09393, allocations: 12 kB / 334.7 MB, free: 5.438 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000219/0.09416, allocations: 95.86 kB / 334.8 MB, free: 5.344 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.09427, allocations: 59.75 kB / 334.8 MB, free: 5.285 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.0944, allocations: 81.5 kB / 334.9 MB, free: 5.199 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004603/0.09487, allocations: 299.6 kB / 335.2 MB, free: 4.906 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.616e-06/0.09489, allocations: 0 / 335.2 MB, free: 4.906 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.036e-06/0.0949, allocations: 4 kB / 335.2 MB, free: 4.902 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.401e-06/0.09492, allocations: 0 / 335.2 MB, free: 4.902 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001534/0.09646, allocations: 0.7751 MB / 336 MB, free: 4.055 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.09652, allocations: 8.031 kB / 336 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.09665, allocations: 47.53 kB / 336 MB, free: 4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.09689, allocations: 230.1 kB / 336.2 MB, free: 3.734 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.275e-05/0.09697, allocations: 33 kB / 336.3 MB, free: 3.703 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.09708, allocations: 40 kB / 336.3 MB, free: 3.664 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.0981, allocations: 378.4 kB / 336.7 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.09813, allocations: 0 / 336.7 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.368e-05/0.0982, allocations: 16 kB / 336.7 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.09822, allocations: 8 kB / 336.7 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.09927, allocations: 319.8 kB / 337 MB, free: 2.949 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002192/0.1015, allocations: 0.9498 MB / 338 MB, free: 1.945 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.1029, allocations: 447.4 kB / 338.4 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.471e-05/0.103, allocations: 8.266 kB / 338.4 MB, free: 1.492 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008589/0.1038, allocations: 345.2 kB / 338.8 MB, free: 1.133 MB / 282.7 MB Notification: Performance of pre-optimization done (n=48): time 8.124e-06/0.1039, allocations: 4 kB / 338.8 MB, free: 1.129 MB / 282.7 MB Notification: Performance of matching and sorting (n=48): time 0.002084/0.106, allocations: 0.8302 MB / 339.6 MB, free: 248 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/0.1061, allocations: 178.6 kB / 339.8 MB, free: 32 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2055/0.3117, allocations: 220.2 kB / 340 MB, free: 16.08 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.881e-05/0.3118, allocations: 45.67 kB / 340 MB, free: 16.05 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.3119, allocations: 228.9 kB / 340.2 MB, free: 15.89 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.3121, allocations: 114.3 kB / 340.4 MB, free: 15.85 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.676e-05/0.3121, allocations: 10.75 kB / 340.4 MB, free: 15.85 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.576e-05/0.3122, allocations: 332.1 kB / 340.7 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005428/0.3128, allocations: 160.7 kB / 340.8 MB, free: 15.54 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005152/0.3133, allocations: 177.6 kB / 341 MB, free: 15.53 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004912/0.3138, allocations: 245.6 kB / 341.3 MB, free: 15.4 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.618e-06/0.3138, allocations: 0.8438 kB / 341.3 MB, free: 15.4 MB / 282.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00131/0.3151, allocations: 0.5588 MB / 341.8 MB, free: 15.22 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.918e-05/0.3152, allocations: 121 kB / 341.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.632e-06/0.3152, allocations: 0 / 341.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.3153, allocations: 3.125 kB / 341.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.3156, allocations: 48.33 kB / 342 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.291e-06/0.3156, allocations: 1.312 kB / 342 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.316, allocations: 91.73 kB / 342.1 MB, free: 15.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-05/0.316, allocations: 16.69 kB / 342.1 MB, free: 15.08 MB / 282.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: 60 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,and1.y,xor.y,nor.y,nand.y,$PRE.pre1.u,pre1.u,pre1.y,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * 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.0002825/0.3163, allocations: 241 kB / 342.3 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.174e-05/0.3164, allocations: 36.19 kB / 342.4 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.005e-05/0.3165, allocations: 46.02 kB / 342.4 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.351e-06/0.3165, allocations: 5.062 kB / 342.4 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.448e-06/0.3166, allocations: 0 / 342.4 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.3166, allocations: 1.688 kB / 342.4 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001929/0.3185, allocations: 1.036 MB / 343.5 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.8e-06/0.3185, allocations: 2.938 kB / 343.5 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.3187, allocations: 37.08 kB / 343.5 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.53e-06/0.3188, allocations: 2.5 kB / 343.5 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.918e-05/0.3188, allocations: 12.58 kB / 343.5 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.368e-06/0.3188, allocations: 2.031 kB / 343.5 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.182e-06/0.3189, allocations: 4 kB / 343.5 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.3203, allocations: 0.6646 MB / 344.2 MB, free: 13.99 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.3205, allocations: 138.9 kB / 344.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.682e-05/0.3206, allocations: 17.83 kB / 344.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004377/0.321, allocations: 67.78 kB / 344.4 MB, free: 13.85 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/0.3213, allocations: 72.03 kB / 344.5 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6e-05/0.3213, allocations: 19.33 kB / 344.5 MB, free: 13.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001343/0.3215, allocations: 142.6 kB / 344.6 MB, free: 13.73 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.18e-07/0.3215, allocations: 0 / 344.6 MB, free: 13.73 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005618/0.3221, allocations: 123.2 kB / 344.7 MB, free: 13.71 MB / 282.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: 43 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,table1.y,table1.nextTime,table1.index,table2.y,table2.nextTime,table2.index,and1.y,xor.y,nor.y,nand.y,pre1.u,pre1.y,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 19 (table1.y,table1.nextTime,table1.index,$whenCondition4,table2.y,table2.nextTime,table2.index,$whenCondition3,pre1.u,edge1.u,fallingEdge.not_u,change1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,triggeredTrapezoid.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.0002927/0.3224, allocations: 172.1 kB / 344.9 MB, free: 13.6 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.3237, allocations: 0.653 MB / 345.6 MB, free: 13.22 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.058e-06/0.3237, allocations: 0 / 345.6 MB, free: 13.22 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006703/0.3244, allocations: 381.3 kB / 345.9 MB, free: 13 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.3247, allocations: 20.55 kB / 346 MB, free: 12.99 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.3261, allocations: 0.756 MB / 346.7 MB, free: 12.51 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.3264, allocations: 0.7995 MB / 347.5 MB, free: 11.8 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.3265, allocations: 27.88 kB / 347.5 MB, free: 11.8 MB / 282.7 MB Notification: Performance of SimCode: time 1.561e-06/0.3266, allocations: 1.125 kB / 347.5 MB, free: 11.8 MB / 282.7 MB Notification: Performance of Templates: time 0.01619/0.3427, allocations: 4.42 MB / 352 MB, free: 11.37 MB / 282.7 MB