Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Logical.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Blocks.Logical") Notification: Performance of loadModel(ModelicaTest): time 2.12/2.12, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004304/0.0004305, allocations: 12 kB / 314.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2721, allocations: 54.86 MB / 369.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.002993/0.2751, allocations: 1.798 MB / 371 MB, free: 8.777 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.2769, allocations: 0.8039 MB / 371.8 MB, free: 7.969 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.2771, allocations: 7.938 kB / 371.8 MB, free: 7.961 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.692e-05/0.2771, allocations: 19.78 kB / 371.8 MB, free: 7.941 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001501/0.2773, allocations: 35.88 kB / 371.8 MB, free: 7.906 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008599/0.2782, allocations: 215.6 kB / 372 MB, free: 7.695 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003066/0.2785, allocations: 216.5 kB / 372.3 MB, free: 7.484 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000303/0.2788, allocations: 145.4 kB / 372.4 MB, free: 7.344 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.2791, allocations: 119.5 kB / 372.5 MB, free: 7.227 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.2793, allocations: 147.3 kB / 372.7 MB, free: 7.082 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.975e-05/0.2794, allocations: 15.94 kB / 372.7 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00022/0.2796, allocations: 99.81 kB / 372.8 MB, free: 6.969 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.2797, allocations: 63.73 kB / 372.8 MB, free: 6.906 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.2798, allocations: 77.52 kB / 372.9 MB, free: 6.824 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004497/0.2803, allocations: 304 kB / 373.2 MB, free: 6.527 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.009e-06/0.2803, allocations: 0 / 373.2 MB, free: 6.527 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.905e-06/0.2803, allocations: 0 / 373.2 MB, free: 6.527 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.252e-06/0.2803, allocations: 0 / 373.2 MB, free: 6.527 MB / 298.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.001499/0.2818, allocations: 0.7751 MB / 374 MB, free: 5.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.2819, allocations: 12.03 kB / 374 MB, free: 5.668 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.282, allocations: 47.44 kB / 374 MB, free: 5.621 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.2823, allocations: 215.5 kB / 374.3 MB, free: 5.367 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.847e-05/0.2823, allocations: 33 kB / 374.3 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.832e-05/0.2824, allocations: 44 kB / 374.3 MB, free: 5.293 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.2835, allocations: 418.1 kB / 374.7 MB, free: 4.871 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.2835, allocations: 0 / 374.7 MB, free: 4.871 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.014e-05/0.2836, allocations: 27.94 kB / 374.8 MB, free: 4.844 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.2836, allocations: 12 kB / 374.8 MB, free: 4.832 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009793/0.2846, allocations: 315.8 kB / 375.1 MB, free: 4.523 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.2868, allocations: 0.9575 MB / 376 MB, free: 3.516 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.2882, allocations: 439.5 kB / 376.5 MB, free: 3.078 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.2882, allocations: 8.281 kB / 376.5 MB, free: 3.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008557/0.2891, allocations: 353.2 kB / 376.8 MB, free: 2.699 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 3.595e-06/0.2891, allocations: 0 / 376.8 MB, free: 2.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=48): time 0.002085/0.2912, allocations: 0.8379 MB / 377.7 MB, free: 1.809 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/0.2914, allocations: 200.3 kB / 377.9 MB, free: 1.566 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.2917, allocations: 219.6 kB / 378.1 MB, free: 1.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.054e-05/0.2918, allocations: 49.69 kB / 378.1 MB, free: 1.285 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.292, allocations: 231.2 kB / 378.3 MB, free: 1.059 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.2921, allocations: 114.5 kB / 378.5 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.621e-05/0.2922, allocations: 12 kB / 378.5 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.2923, allocations: 326.8 kB / 378.8 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005378/0.2929, allocations: 169 kB / 379 MB, free: 452 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005718/0.2935, allocations: 207.7 kB / 379.2 MB, free: 240 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005553/0.2941, allocations: 253.1 kB / 379.4 MB, free: 15.96 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.683e-06/0.2941, allocations: 0 / 379.4 MB, free: 15.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00131/0.2954, allocations: 0.5563 MB / 380 MB, free: 15.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/0.2955, allocations: 118.8 kB / 380.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.2956, allocations: 3.984 kB / 380.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.2956, allocations: 4 kB / 380.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002817/0.2959, allocations: 51.84 kB / 380.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.2959, allocations: 4 kB / 380.1 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003784/0.2963, allocations: 99.41 kB / 380.2 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.2964, allocations: 16 kB / 380.3 MB, free: 15.06 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: 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.0003514/0.2967, allocations: 237.2 kB / 380.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.965e-05/0.2968, allocations: 35.67 kB / 380.5 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.076e-05/0.2969, allocations: 43.3 kB / 380.6 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.007e-06/0.2969, allocations: 4 kB / 380.6 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.198e-06/0.297, allocations: 0 / 380.6 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.297, allocations: 3.984 kB / 380.6 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002084/0.2991, allocations: 1.036 MB / 381.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.574e-06/0.2991, allocations: 3.953 kB / 381.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.2993, allocations: 39.91 kB / 381.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.2993, allocations: 4 kB / 381.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.904e-05/0.2994, allocations: 11.98 kB / 381.7 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.969e-06/0.2994, allocations: 4 kB / 381.7 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.259e-06/0.2994, allocations: 0 / 381.7 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.3009, allocations: 0.659 MB / 382.3 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.251e-05/0.3011, allocations: 112.6 kB / 382.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.752e-05/0.3012, allocations: 16 kB / 382.5 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004413/0.3016, allocations: 75.92 kB / 382.5 MB, free: 12.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.3018, allocations: 63.89 kB / 382.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.724e-05/0.3019, allocations: 23.98 kB / 382.6 MB, free: 12.56 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001649/0.3021, allocations: 144.8 kB / 382.8 MB, free: 12.42 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.3021, allocations: 0 / 382.8 MB, free: 12.42 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005532/0.3027, allocations: 131.7 kB / 382.9 MB, free: 12.29 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: 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.0003208/0.303, allocations: 165.8 kB / 383 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.3044, allocations: 0.6531 MB / 383.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.24e-06/0.3044, allocations: 4 kB / 383.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007684/0.3052, allocations: 374.6 kB / 384.1 MB, free: 11.02 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.3055, allocations: 23.66 kB / 384.1 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.307, allocations: 0.7532 MB / 384.8 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000522/0.3076, allocations: 0.8005 MB / 385.6 MB, free: 9.387 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.3078, allocations: 27.42 kB / 385.7 MB, free: 9.363 MB / 314.7 MB Notification: Performance of SimCode: time 1.525e-06/0.3078, allocations: 0 / 385.7 MB, free: 9.363 MB / 314.7 MB Notification: Performance of Templates: time 0.009134/0.3169, allocations: 4.448 MB / 390.1 MB, free: 4.918 MB / 314.7 MB