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.00271/0.002715, allocations: 368.3 kB / 15.96 MB, free: 6.199 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.8/3.8, allocations: 388.9 MB / 405.6 MB, free: 10.25 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.004823/0.004823, allocations: 229.7 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.5499/0.5499, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000485/0.0004852, allocations: 12.75 kB / 0.6265 GB, free: 96.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09096/0.09147, allocations: 54.88 MB / 0.6801 GB, free: 41.69 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.002705/0.09423, allocations: 1.79 MB / 0.6818 GB, free: 39.88 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.09597, allocations: 0.8351 MB / 0.6827 GB, free: 39.04 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.09615, allocations: 4 kB / 0.6827 GB, free: 39.04 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.195e-05/0.09625, allocations: 27.72 kB / 0.6827 GB, free: 39.01 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001647/0.09643, allocations: 23.78 kB / 0.6827 GB, free: 38.98 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009036/0.09735, allocations: 218.2 kB / 0.6829 GB, free: 38.77 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003736/0.09773, allocations: 360.2 kB / 0.6833 GB, free: 38.42 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003029/0.09805, allocations: 153.2 kB / 0.6834 GB, free: 38.27 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/0.09827, allocations: 119.5 kB / 0.6835 GB, free: 38.16 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.09847, allocations: 151.2 kB / 0.6837 GB, free: 38.01 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.629e-05/0.09854, allocations: 16 kB / 0.6837 GB, free: 37.99 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.09879, allocations: 91.88 kB / 0.6838 GB, free: 37.9 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.104e-05/0.0989, allocations: 67.73 kB / 0.6838 GB, free: 37.84 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.057e-05/0.09899, allocations: 81.45 kB / 0.6839 GB, free: 37.75 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003751/0.09937, allocations: 299.6 kB / 0.6842 GB, free: 37.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.09939, allocations: 0 / 0.6842 GB, free: 37.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.09941, allocations: 4 kB / 0.6842 GB, free: 37.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.09942, allocations: 0 / 0.6842 GB, free: 37.45 MB / 346.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.001766/0.1012, allocations: 0.7785 MB / 0.685 GB, free: 36.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.1013, allocations: 8.031 kB / 0.685 GB, free: 36.6 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.1014, allocations: 47.52 kB / 0.685 GB, free: 36.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/0.1015, allocations: 220.8 kB / 0.6852 GB, free: 36.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.542e-05/0.1016, allocations: 33 kB / 0.6853 GB, free: 36.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.792e-05/0.1017, allocations: 40 kB / 0.6853 GB, free: 36.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.1028, allocations: 422.1 kB / 0.6857 GB, free: 35.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.1029, allocations: 3.938 kB / 0.6857 GB, free: 35.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.607e-05/0.103, allocations: 23.94 kB / 0.6857 GB, free: 35.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.103, allocations: 8 kB / 0.6857 GB, free: 35.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001101/0.1041, allocations: 315.8 kB / 0.686 GB, free: 35.46 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.1064, allocations: 0.9459 MB / 0.687 GB, free: 34.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001654/0.1081, allocations: 455.4 kB / 0.6874 GB, free: 34.01 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006434/0.1087, allocations: 193 kB / 0.6876 GB, free: 33.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.1088, allocations: 4.328 kB / 0.6876 GB, free: 33.81 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008768/0.1097, allocations: 341.3 kB / 0.6879 GB, free: 33.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 3.597e-06/0.1097, allocations: 4 kB / 0.6879 GB, free: 33.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.002133/0.1118, allocations: 0.6864 MB / 0.6886 GB, free: 32.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.294e-05/0.1119, allocations: 200.3 kB / 0.6888 GB, free: 32.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.1122, allocations: 223.5 kB / 0.689 GB, free: 32.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.755e-05/0.1122, allocations: 49.69 kB / 0.689 GB, free: 32.22 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.1124, allocations: 172.8 kB / 0.6892 GB, free: 32.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.1125, allocations: 110.5 kB / 0.6893 GB, free: 31.94 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.433e-05/0.1125, allocations: 12 kB / 0.6893 GB, free: 31.93 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.069e-05/0.1126, allocations: 342.8 kB / 0.6896 GB, free: 31.58 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005748/0.1132, allocations: 161 kB / 0.6898 GB, free: 31.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006096/0.1138, allocations: 215.8 kB / 0.69 GB, free: 31.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005672/0.1144, allocations: 241 kB / 0.6902 GB, free: 30.95 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.1145, allocations: 0 / 0.6902 GB, free: 30.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001406/0.1159, allocations: 0.5717 MB / 0.6908 GB, free: 30.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.5e-05/0.116, allocations: 118.8 kB / 0.6909 GB, free: 30.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.116, allocations: 0 / 0.6909 GB, free: 30.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.116, allocations: 11.94 kB / 0.6909 GB, free: 30.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003606/0.1164, allocations: 43.91 kB / 0.6909 GB, free: 30.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.659e-05/0.1164, allocations: 4 kB / 0.691 GB, free: 30.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005494/0.117, allocations: 95.53 kB / 0.691 GB, free: 30.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.776e-05/0.1171, allocations: 16 kB / 0.6911 GB, free: 30.04 MB / 346.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.0003187/0.1174, allocations: 241.9 kB / 0.6913 GB, free: 29.79 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.612e-05/0.1175, allocations: 35.67 kB / 0.6913 GB, free: 29.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.823e-05/0.1176, allocations: 35.31 kB / 0.6914 GB, free: 29.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.1176, allocations: 3.984 kB / 0.6914 GB, free: 29.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1176, allocations: 0 / 0.6914 GB, free: 29.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.259e-05/0.1177, allocations: 112.5 kB / 0.6915 GB, free: 29.58 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.1178, allocations: 16 kB / 0.6915 GB, free: 29.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005938/0.1184, allocations: 83.91 kB / 0.6916 GB, free: 29.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.1186, allocations: 67.67 kB / 0.6916 GB, free: 29.41 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001956/0.1206, allocations: 0.7922 MB / 0.6924 GB, free: 28.58 MB / 346.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.00155/0.1222, allocations: 0.7373 MB / 0.6931 GB, free: 27.81 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006726/0.1229, allocations: 250 kB / 0.6934 GB, free: 27.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001369/0.123, allocations: 144.4 kB / 0.6935 GB, free: 27.43 MB / 346.7 MB Notification: Performance of Backend: time 7.42e-07/0.123, allocations: 3.938 kB / 0.6935 GB, free: 27.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.1244, allocations: 0.5929 MB / 0.6941 GB, free: 26.77 MB / 346.7 MB Notification: Performance of SimCode: time 0.001173/0.1256, allocations: 1.139 MB / 0.6952 GB, free: 25.57 MB / 346.7 MB Notification: Performance of Templates: time 0.0118/0.1375, allocations: 4.429 MB / 0.6995 GB, free: 21.16 MB / 346.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[5086]=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