Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Tables.CombiTimeTable.Test14.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: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0096/0.009604, allocations: 164.4 kB / 15.12 MB, free: 5.957 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 1.692/1.692, allocations: 170.8 MB / 186.6 MB, free: 1.109 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001795/0.001794, allocations: 102.8 kB / 226.2 MB, free: 10.08 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4524/0.4524, allocations: 38.05 MB / 303.7 MB, free: 42.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006237/0.0006239, allocations: 12 kB / 363 MB, free: 5.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1092, allocations: 48.72 MB / 411.7 MB, free: 4.68 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.004226/0.1135, allocations: 1.534 MB / 413.2 MB, free: 3.133 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.1156, allocations: 0.8311 MB / 414.1 MB, free: 2.297 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.1157, allocations: 4 kB / 414.1 MB, free: 2.293 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.1161, allocations: 31.83 kB / 414.1 MB, free: 2.262 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002396/0.1163, allocations: 43.77 kB / 414.2 MB, free: 2.219 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003768/0.1167, allocations: 79.78 kB / 414.2 MB, free: 2.141 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002631/0.117, allocations: 143.5 kB / 414.4 MB, free: 2 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.1171, allocations: 37.06 kB / 414.4 MB, free: 1.965 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.1173, allocations: 55.77 kB / 414.5 MB, free: 1.91 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.1174, allocations: 67.67 kB / 414.5 MB, free: 1.844 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.128e-05/0.1175, allocations: 4 kB / 414.5 MB, free: 1.84 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.1176, allocations: 39.94 kB / 414.6 MB, free: 1.801 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.538e-05/0.1177, allocations: 23.91 kB / 414.6 MB, free: 1.777 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.984e-05/0.1178, allocations: 45.64 kB / 414.6 MB, free: 1.727 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002837/0.1181, allocations: 124 kB / 414.8 MB, free: 1.605 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.1181, allocations: 0 / 414.8 MB, free: 1.605 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.962e-06/0.1181, allocations: 7.922 kB / 414.8 MB, free: 1.598 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.1181, allocations: 0 / 414.8 MB, free: 1.598 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001187/0.1193, allocations: 0.5466 MB / 415.3 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.1194, allocations: 12.03 kB / 415.3 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.186e-05/0.1195, allocations: 38.5 kB / 415.4 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.316e-05/0.1195, allocations: 15.81 kB / 415.4 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.1199, allocations: 227.6 kB / 415.6 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.1199, allocations: 4 kB / 415.6 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.12, allocations: 4 kB / 415.6 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005642/0.1206, allocations: 129.6 kB / 415.7 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.1206, allocations: 0 / 415.7 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.1206, allocations: 0 / 415.7 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.1206, allocations: 4 kB / 415.7 MB, free: 0.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007777/0.1214, allocations: 131.8 kB / 415.9 MB, free: 380 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007883/0.1222, allocations: 372.6 kB / 416.2 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009949/0.1232, allocations: 166.5 kB / 416.4 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004187/0.1237, allocations: 80.78 kB / 416.5 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.585e-05/0.1237, allocations: 4 kB / 416.5 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006193/0.1244, allocations: 131.3 kB / 416.6 MB, free: 15.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 5.651e-06/0.1244, allocations: 0 / 416.6 MB, free: 15.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.001425/0.1258, allocations: 277.2 kB / 416.9 MB, free: 15.28 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.76e-05/0.1259, allocations: 55.78 kB / 416.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003185/0.1262, allocations: 196 kB / 417.1 MB, free: 15.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.424e-05/0.1263, allocations: 25.7 kB / 417.1 MB, free: 14.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1264, allocations: 120 kB / 417.3 MB, free: 14.86 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.1265, allocations: 31.55 kB / 417.3 MB, free: 14.83 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.725e-05/0.1265, allocations: 4 kB / 417.3 MB, free: 14.83 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.1266, allocations: 330.8 kB / 417.6 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004372/0.1271, allocations: 75.94 kB / 417.7 MB, free: 14.42 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004568/0.1276, allocations: 99.52 kB / 417.8 MB, free: 14.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004738/0.1281, allocations: 135.3 kB / 417.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1281, allocations: 0 / 417.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.001101/0.1292, allocations: 296.7 kB / 418.2 MB, free: 13.87 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.298e-05/0.1293, allocations: 59.39 kB / 418.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.1293, allocations: 0 / 418.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.1293, allocations: 7.953 kB / 418.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002932/0.1296, allocations: 35.97 kB / 418.3 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.1296, allocations: 4 kB / 418.3 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003304/0.13, allocations: 27.92 kB / 418.3 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.141e-05/0.13, allocations: 7.984 kB / 418.4 MB, free: 13.72 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 2 * 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.0001706/0.1302, allocations: 134.4 kB / 418.5 MB, free: 13.58 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.898e-05/0.1303, allocations: 11.81 kB / 418.5 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.165e-05/0.1303, allocations: 25.39 kB / 418.5 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1304, allocations: 4 kB / 418.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.1304, allocations: 3.953 kB / 418.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1304, allocations: 0 / 418.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002673/0.1307, allocations: 225.5 kB / 418.8 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1307, allocations: 0 / 418.8 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002711/0.131, allocations: 27.98 kB / 418.8 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.131, allocations: 3.984 kB / 418.8 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.131, allocations: 3.984 kB / 418.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.131, allocations: 8 kB / 418.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.131, allocations: 0 / 418.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.1324, allocations: 304.8 kB / 419.1 MB, free: 12.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.007e-05/0.1325, allocations: 96.84 kB / 419.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.25e-05/0.1326, allocations: 4 kB / 419.2 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.1329, allocations: 23.97 kB / 419.2 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.206e-05/0.133, allocations: 19.97 kB / 419.2 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.133, allocations: 4 kB / 419.2 MB, free: 12.75 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001927/0.1332, allocations: 152.4 kB / 419.4 MB, free: 12.6 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1333, allocations: 3.938 kB / 419.4 MB, free: 12.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003679/0.1336, allocations: 39.94 kB / 419.4 MB, free: 12.55 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent) * Number of discrete states: 2 (trapezoid1.count,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.002581/0.1362, allocations: 1.045 MB / 420.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.1374, allocations: 290.6 kB / 420.8 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.1374, allocations: 0 / 420.8 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004467/0.1378, allocations: 76.02 kB / 420.8 MB, free: 11.13 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004978/0.1384, allocations: 36.16 kB / 420.9 MB, free: 11.1 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003216/0.1416, allocations: 1.067 MB / 421.9 MB, free: 9.977 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/0.142, allocations: 0.7123 MB / 422.6 MB, free: 9.238 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000143/0.1422, allocations: 16.64 kB / 422.7 MB, free: 9.223 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.1423, allocations: 39.42 kB / 422.7 MB, free: 9.184 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.1423, allocations: 0 / 422.7 MB, free: 9.184 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03744/0.1798, allocations: 3.857 MB / 426.6 MB, free: 5.348 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003558/0.1802, allocations: 243.7 kB / 426.8 MB, free: 5.035 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.664/2.844, allocations: 4 kB / 426.8 MB, free: 5.031 MB / 330.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[5004]=2.000000 File[27]=0.505051 " Variables in the reference:time,err1.y,t_new.nextTimeEvent,trapezoid1.T_start,trapezoid1.count Variables in the result:der(err1.y),err1.initType,err1.k,err1.u,err1.y,err1.y_start,feedback1.u1,feedback1.u2,feedback1.y,product1.u1,product1.u2,product1.y,t_new.columns[1],t_new.extrapolation,t_new.nextTimeEvent,t_new.nout,t_new.offset[1],t_new.p_offset[1],t_new.smoothness,t_new.startTime,t_new.t_max,t_new.t_min,t_new.tableOnFile,t_new.tableOnFileRead,t_new.table[1,1],t_new.table[1,2],t_new.table[2,1],t_new.table[2,2],t_new.verboseRead,t_new.y[1],threshold,time,trapezoid1.T_falling,trapezoid1.T_rising,trapezoid1.T_start,trapezoid1.T_width,trapezoid1.amplitude,trapezoid1.count,trapezoid1.falling,trapezoid1.nperiod,trapezoid1.offset,trapezoid1.period,trapezoid1.rising,trapezoid1.startTime,trapezoid1.width,trapezoid1.y