Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003956/0.003956, allocations: 354.5 kB / 15.95 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.662/3.662, allocations: 341.5 MB / 358.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003789/0.003789, allocations: 225.2 kB / 397.9 MB, free: 4.914 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.6255/0.6255, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004817/0.0004819, allocations: 8 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08708/0.08759, allocations: 48.71 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.00281/0.09045, allocations: 1.785 MB / 0.6085 GB, free: 2.855 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.09235, allocations: 0.8184 MB / 0.6093 GB, free: 2.031 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002304/0.09263, allocations: 4 kB / 0.6093 GB, free: 2.027 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.09276, allocations: 31.7 kB / 0.6093 GB, free: 1.996 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.09294, allocations: 27.78 kB / 0.6093 GB, free: 1.969 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.09401, allocations: 223.7 kB / 0.6096 GB, free: 1.75 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004164/0.09445, allocations: 352.2 kB / 0.6099 GB, free: 1.406 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2845/0.379, allocations: 131.3 kB / 0.61 GB, free: 88.62 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005333/0.3796, allocations: 120.6 kB / 0.6101 GB, free: 88.62 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003897/0.38, allocations: 155.1 kB / 0.6103 GB, free: 88.62 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001034/0.3802, allocations: 15.28 kB / 0.6103 GB, free: 88.62 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004665/0.3806, allocations: 91.23 kB / 0.6104 GB, free: 88.62 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001767/0.3808, allocations: 66.05 kB / 0.6104 GB, free: 88.62 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002087/0.3811, allocations: 81.14 kB / 0.6105 GB, free: 88.59 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000924/0.382, allocations: 300.4 kB / 0.6108 GB, free: 88.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.3821, allocations: 0 / 0.6108 GB, free: 88.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3821, allocations: 0 / 0.6108 GB, free: 88.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.677e-05/0.3821, allocations: 0.9688 kB / 0.6108 GB, free: 88.59 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.00305/0.3852, allocations: 0.7785 MB / 0.6116 GB, free: 88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.831e-05/0.3853, allocations: 9.062 kB / 0.6116 GB, free: 88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003161/0.3856, allocations: 54.17 kB / 0.6116 GB, free: 87.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.3859, allocations: 218.3 kB / 0.6118 GB, free: 87.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.3861, allocations: 32.8 kB / 0.6119 GB, free: 87.76 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001675/0.3863, allocations: 41.5 kB / 0.6119 GB, free: 87.76 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.3883, allocations: 375 kB / 0.6123 GB, free: 87.72 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.3884, allocations: 0 / 0.6123 GB, free: 87.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.3885, allocations: 20.11 kB / 0.6123 GB, free: 87.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.3886, allocations: 8.469 kB / 0.6123 GB, free: 87.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002133/0.3907, allocations: 315.5 kB / 0.6126 GB, free: 87.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004808/0.3956, allocations: 0.9518 MB / 0.6135 GB, free: 87.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003049/0.3987, allocations: 450.6 kB / 0.6139 GB, free: 87.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001215/0.4, allocations: 187.4 kB / 0.6141 GB, free: 87.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.85e-05/0.4001, allocations: 8.672 kB / 0.6141 GB, free: 87.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001743/0.4019, allocations: 343.8 kB / 0.6145 GB, free: 87.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 9.899e-06/0.402, allocations: 0 / 0.6145 GB, free: 87.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.004204/0.4062, allocations: 0.6858 MB / 0.6151 GB, free: 87.13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.4064, allocations: 172.5 kB / 0.6153 GB, free: 86.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004836/0.4069, allocations: 234 kB / 0.6155 GB, free: 86.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002036/0.4071, allocations: 46.45 kB / 0.6156 GB, free: 86.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002235/0.4074, allocations: 172.2 kB / 0.6157 GB, free: 86.69 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002539/0.4077, allocations: 114.4 kB / 0.6158 GB, free: 86.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.581e-05/0.4077, allocations: 9.844 kB / 0.6158 GB, free: 86.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4079, allocations: 345 kB / 0.6162 GB, free: 86.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001124/0.409, allocations: 161.4 kB / 0.6163 GB, free: 86.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008566/0.4099, allocations: 171.2 kB / 0.6165 GB, free: 86.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006645/0.4107, allocations: 248.2 kB / 0.6167 GB, free: 86.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.4107, allocations: 3.844 kB / 0.6167 GB, free: 86.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001616/0.4123, allocations: 0.5654 MB / 0.6173 GB, free: 86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.897e-05/0.4124, allocations: 122.9 kB / 0.6174 GB, free: 85.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.4125, allocations: 0.5625 kB / 0.6174 GB, free: 85.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.274e-05/0.4125, allocations: 7.297 kB / 0.6174 GB, free: 85.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003879/0.4129, allocations: 48.12 kB / 0.6175 GB, free: 85.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.4129, allocations: 0 / 0.6175 GB, free: 85.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006186/0.4135, allocations: 92.16 kB / 0.6175 GB, free: 85.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.593e-05/0.4136, allocations: 19.73 kB / 0.6176 GB, free: 85.85 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,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.0004221/0.414, allocations: 239.4 kB / 0.6178 GB, free: 85.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.4142, allocations: 30.88 kB / 0.6178 GB, free: 85.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.627e-05/0.4143, allocations: 36.3 kB / 0.6179 GB, free: 85.65 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.4143, allocations: 5.047 kB / 0.6179 GB, free: 85.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.4143, allocations: 7.906 kB / 0.6179 GB, free: 85.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001942/0.4145, allocations: 137.1 kB / 0.618 GB, free: 85.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.4146, allocations: 21.56 kB / 0.618 GB, free: 85.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006249/0.4153, allocations: 67.73 kB / 0.6181 GB, free: 85.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000284/0.4156, allocations: 64.92 kB / 0.6181 GB, free: 85.54 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002282/0.4179, allocations: 0.8006 MB / 0.6189 GB, free: 85.23 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001803/0.4197, allocations: 0.7242 MB / 0.6196 GB, free: 84.94 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008263/0.4206, allocations: 248.6 kB / 0.6199 GB, free: 84.94 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002006/0.4208, allocations: 143.3 kB / 0.62 GB, free: 84.86 MB / 362.7 MB Notification: Performance of Backend: time 1.132e-06/0.4208, allocations: 0 / 0.62 GB, free: 84.86 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.4227, allocations: 0.5963 MB / 0.6206 GB, free: 84.53 MB / 362.7 MB Notification: Performance of SimCode: time 0.001514/0.4242, allocations: 1.15 MB / 0.6217 GB, free: 83.57 MB / 362.7 MB Notification: Performance of Templates: time 0.01584/0.4401, allocations: 4.347 MB / 0.626 GB, free: 83.42 MB / 362.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[5091]=10.000000 File[7009]=14.002000 " Variables in the reference: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 Variables in the result:change1.pre_u_start,change1.u,edge1.pre_u_start,edge1.u,fallingEdge.not_u,fallingEdge.pre_u_start,greaterEqualThreshold.threshold,greaterThreshold.threshold,hysteresis.pre_y_start,hysteresis.uHigh,hysteresis.uLow,hysteresis.y,lessEqualThreshold.threshold,lessThreshold.threshold,onOffController.bandwidth,onOffController.pre_y_start,onOffController.y,pre1.pre_u_start,pre1.u,rSFlipFlop.Qini,rSFlipFlop.pre.pre_u_start,rSFlipFlop.pre.u,ramp.duration,ramp.height,ramp.offset,ramp.startTime,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,table1.index,table1.n,table1.nextTime,table1.startValue,table1.table[1],table1.table[2],table1.table[3],table1.table[4],table1.y,table2.index,table2.n,table2.nextTime,table2.startValue,table2.table[1],table2.table[2],table2.table[3],table2.table[4],table2.y,time,timer.entryTime,triggeredTrapezoid.T,triggeredTrapezoid.amplitude,triggeredTrapezoid.endValue,triggeredTrapezoid.falling,triggeredTrapezoid.offset,triggeredTrapezoid.rate,triggeredTrapezoid.rising,triggeredTrapezoid.y,zeroCrossing.disable,zeroCrossing.enable,zeroCrossing.u_pos