Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/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_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004571/0.004571, allocations: 361.4 kB / 15.95 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.941/3.941, allocations: 388.9 MB / 405.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003582/0.003582, allocations: 236.5 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.7258/0.7258, allocations: 80.02 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006388/0.000639, allocations: 12 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1561, allocations: 54.86 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5666/0.7228, allocations: 84.96 MB / 0.763 GB, free: 440 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.7231, allocations: 66.28 kB / 0.7631 GB, free: 408 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03749/0.7606, allocations: 5.952 MB / 0.7689 GB, free: 11.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.7607, allocations: 4 kB / 0.7689 GB, free: 11.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.093e-05/0.7607, allocations: 4 kB / 0.7689 GB, free: 11.16 MB / 362.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.002707/0.7634, allocations: 0.7771 MB / 0.7697 GB, free: 10.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.7635, allocations: 8.031 kB / 0.7697 GB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002539/0.7638, allocations: 47.48 kB / 0.7697 GB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003243/0.7641, allocations: 212.8 kB / 0.7699 GB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.643e-05/0.7642, allocations: 29.75 kB / 0.77 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/0.7644, allocations: 49.61 kB / 0.77 GB, free: 9.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/0.7663, allocations: 420.5 kB / 0.7704 GB, free: 9.668 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.7664, allocations: 0 / 0.7704 GB, free: 9.668 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.179e-05/0.7665, allocations: 22.48 kB / 0.7704 GB, free: 9.656 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.235e-05/0.7665, allocations: 11.95 kB / 0.7704 GB, free: 9.645 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.7683, allocations: 316 kB / 0.7707 GB, free: 9.418 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003996/0.7723, allocations: 0.948 MB / 0.7717 GB, free: 8.602 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002587/0.775, allocations: 449.8 kB / 0.7721 GB, free: 8.266 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.7761, allocations: 192.4 kB / 0.7723 GB, free: 8.133 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.867e-05/0.7761, allocations: 4.328 kB / 0.7723 GB, free: 8.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00135/0.7775, allocations: 360.2 kB / 0.7726 GB, free: 7.816 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 4.728e-06/0.7776, allocations: 3.938 kB / 0.7726 GB, free: 7.812 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.003346/0.7809, allocations: 0.6768 MB / 0.7733 GB, free: 7.266 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002108/0.7812, allocations: 203 kB / 0.7735 GB, free: 7.031 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004754/0.7817, allocations: 219.8 kB / 0.7737 GB, free: 6.836 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001892/0.7819, allocations: 51.69 kB / 0.7738 GB, free: 6.789 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/0.7822, allocations: 171.6 kB / 0.7739 GB, free: 6.652 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002248/0.7824, allocations: 114.1 kB / 0.774 GB, free: 6.559 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.479e-05/0.7825, allocations: 7.125 kB / 0.774 GB, free: 6.559 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002278/0.7827, allocations: 338.4 kB / 0.7744 GB, free: 6.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009508/0.7837, allocations: 172.1 kB / 0.7745 GB, free: 6.113 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009944/0.7847, allocations: 214.9 kB / 0.7747 GB, free: 5.957 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00089/0.7856, allocations: 252.4 kB / 0.775 GB, free: 5.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.7856, allocations: 0 / 0.775 GB, free: 5.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002256/0.7879, allocations: 0.5753 MB / 0.7755 GB, free: 5.234 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.7881, allocations: 122.7 kB / 0.7756 GB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.7881, allocations: 0 / 0.7756 GB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/0.7882, allocations: 0 / 0.7756 GB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005017/0.7887, allocations: 51.59 kB / 0.7757 GB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.7887, allocations: 0 / 0.7757 GB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007815/0.7895, allocations: 80.28 kB / 0.7758 GB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.7896, allocations: 23.88 kB / 0.7758 GB, free: 4.957 MB / 362.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,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$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.u1,logicalSwitch.u2,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.0005713/0.7902, allocations: 234.2 kB / 0.776 GB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.7904, allocations: 35.66 kB / 0.776 GB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001441/0.7905, allocations: 39.33 kB / 0.7761 GB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.7906, allocations: 4 kB / 0.7761 GB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.7906, allocations: 4 kB / 0.7761 GB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.7906, allocations: 3.984 kB / 0.7761 GB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003478/0.7941, allocations: 1.034 MB / 0.7771 GB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/0.7942, allocations: 0 / 0.7771 GB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000349/0.7945, allocations: 38.53 kB / 0.7771 GB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-05/0.7946, allocations: 3.953 kB / 0.7771 GB, free: 3.734 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.7947, allocations: 18.48 kB / 0.7772 GB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.165e-06/0.7947, allocations: 4 kB / 0.7772 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.7947, allocations: 0 / 0.7772 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002758/0.7975, allocations: 0.6573 MB / 0.7778 GB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001667/0.7977, allocations: 104.7 kB / 0.7779 GB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001809/0.7979, allocations: 22.88 kB / 0.7779 GB, free: 3.016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009909/0.799, allocations: 71.06 kB / 0.778 GB, free: 2.953 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003602/0.7993, allocations: 66.27 kB / 0.7781 GB, free: 2.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.7995, allocations: 19.05 kB / 0.7781 GB, free: 2.887 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003088/0.7998, allocations: 146.3 kB / 0.7782 GB, free: 2.762 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7998, allocations: 0 / 0.7782 GB, free: 2.762 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001027/0.8009, allocations: 121.8 kB / 0.7783 GB, free: 2.652 MB / 362.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,nor.u1,nand.u1,pre1.u,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.u1,logicalSwitch.u2,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.0005985/0.8015, allocations: 176.5 kB / 0.7785 GB, free: 2.488 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002553/0.8041, allocations: 0.6527 MB / 0.7791 GB, free: 1.898 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.8041, allocations: 0 / 0.7791 GB, free: 1.898 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/0.8055, allocations: 380.5 kB / 0.7795 GB, free: 1.582 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007317/0.8062, allocations: 33.92 kB / 0.7795 GB, free: 1.562 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/0.8086, allocations: 0.7168 MB / 0.7802 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000653/0.8093, allocations: 0.8004 MB / 0.781 GB, free: 80 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003288/0.8097, allocations: 30.97 kB / 0.781 GB, free: 48 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002154/0.8099, allocations: 27.44 kB / 0.7811 GB, free: 20 kB / 362.7 MB Notification: Performance of SimCode: time 1.603e-06/0.8099, allocations: 0 / 0.7811 GB, free: 20 kB / 362.7 MB Notification: Performance of Templates: time 0.01677/0.8267, allocations: 3.912 MB / 0.7849 GB, free: 12.14 MB / 378.7 MB