Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001154/0.001154, allocations: 114 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001398, allocations: 205.8 kB / 18.27 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.186/0.186, allocations: 46.1 MB / 343.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 71.45 kB / 417.2 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0949/0.09675, allocations: 62.46 MB / 479.6 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.002776/0.09956, allocations: 2.087 MB / 481.7 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.1009, allocations: 1.09 MB / 482.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.831e-05/0.101, allocations: 3.938 kB / 482.8 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002671/0.1013, allocations: 43.77 kB / 482.8 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002407/0.1016, allocations: 95.61 kB / 482.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.1018, allocations: 91.78 kB / 483 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002168/0.102, allocations: 203.4 kB / 483.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.221e-05/0.1021, allocations: 33.67 kB / 483.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.1023, allocations: 87.56 kB / 483.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.566e-05/0.1024, allocations: 71.62 kB / 483.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.28e-05/0.1024, allocations: 12 kB / 483.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.02e-05/0.1025, allocations: 55.97 kB / 483.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.751e-05/0.1025, allocations: 43.78 kB / 483.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.091e-05/0.1026, allocations: 71.59 kB / 483.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002206/0.1028, allocations: 195.6 kB / 483.8 MB, free: 1.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1029, allocations: 0 / 483.8 MB, free: 1.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1029, allocations: 0 / 483.8 MB, free: 1.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.1029, allocations: 0 / 483.8 MB, free: 1.297 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007669/0.1036, allocations: 0.5604 MB / 484.3 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.1037, allocations: 16.02 kB / 484.4 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.527e-05/0.1037, allocations: 42.69 kB / 484.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.521e-05/0.1038, allocations: 16.75 kB / 484.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.104, allocations: 248.8 kB / 484.7 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.104, allocations: 4.375 kB / 484.7 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.1041, allocations: 19.94 kB / 484.7 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003521/0.1044, allocations: 159 kB / 484.8 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.1044, allocations: 0 / 484.8 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.1045, allocations: 4 kB / 484.8 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.1045, allocations: 0 / 484.8 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003895/0.1049, allocations: 115.9 kB / 484.9 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005453/0.1054, allocations: 0.5555 MB / 485.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005577/0.106, allocations: 158.5 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/0.1062, allocations: 72.8 kB / 485.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.1062, allocations: 4 kB / 485.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000335/0.1066, allocations: 131.2 kB / 485.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.1066, allocations: 0 / 485.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007633/0.1074, allocations: 269.1 kB / 486.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.307e-05/0.1074, allocations: 55.41 kB / 486.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.1076, allocations: 229.6 kB / 486.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.1076, allocations: 29.7 kB / 486.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.157e-05/0.1077, allocations: 128.3 kB / 486.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.1078, allocations: 39.59 kB / 486.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.323e-05/0.1078, allocations: 33.7 kB / 486.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1079, allocations: 330.8 kB / 487 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002288/0.1082, allocations: 67.94 kB / 487 MB, free: 13.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.1084, allocations: 104.2 kB / 487.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004396/0.1089, allocations: 201.3 kB / 487.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1089, allocations: 0 / 487.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005754/0.1095, allocations: 255 kB / 487.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.1095, allocations: 29.7 kB / 487.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1095, allocations: 7.984 kB / 487.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.1095, allocations: 7.922 kB / 487.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.1097, allocations: 39.91 kB / 487.6 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.1097, allocations: 4 kB / 487.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.1099, allocations: 27.81 kB / 487.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.1099, allocations: 12 kB / 487.7 MB, free: 13.06 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.t_new.nextTimeEvent,$whenCondition2,t_new.nextTimeEventScaled,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEvent,trapezoid1.count,$PRE.trapezoid1.count,trapezoid1.T_start,$PRE.trapezoid1.T_start,$whenCondition1,err1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.11, allocations: 133.8 kB / 487.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.11, allocations: 19.72 kB / 487.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.632e-05/0.1101, allocations: 25.39 kB / 487.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.1101, allocations: 3.938 kB / 487.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1101, allocations: 0 / 487.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1101, allocations: 0 / 487.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.1103, allocations: 245.4 kB / 488.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1103, allocations: 0 / 488.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001465/0.1104, allocations: 27.97 kB / 488.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.1104, allocations: 0 / 488.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.1105, allocations: 4 kB / 488.1 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1105, allocations: 7.922 kB / 488.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1105, allocations: 0 / 488.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007386/0.1112, allocations: 301.1 kB / 488.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.641e-05/0.1113, allocations: 96.84 kB / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.1113, allocations: 4 kB / 488.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.1115, allocations: 27.91 kB / 488.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.118e-05/0.1115, allocations: 23.91 kB / 488.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.1116, allocations: 7.984 kB / 488.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001262/0.1117, allocations: 176.5 kB / 488.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1117, allocations: 0 / 488.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000234/0.1119, allocations: 36 kB / 488.8 MB, free: 11.85 MB / 366.1 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: 6 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 3 (trapezoid1.count,t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001689/0.1136, allocations: 1.135 MB / 489.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005401/0.1142, allocations: 219.3 kB / 490.2 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.1142, allocations: 4 kB / 490.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002397/0.1144, allocations: 83.81 kB / 490.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.1147, allocations: 47.58 kB / 490.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002717/0.1175, allocations: 2.206 MB / 492.5 MB, free: 8.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.1177, allocations: 0.7319 MB / 493.2 MB, free: 7.398 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.509e-05/0.1178, allocations: 17.55 kB / 493.2 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.634e-05/0.1179, allocations: 55.42 kB / 493.3 MB, free: 7.328 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1179, allocations: 0 / 493.3 MB, free: 7.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8201/0.9381, allocations: 4.696 MB / 498 MB, free: 2.742 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/0.9383, allocations: 232.5 kB / 498.2 MB, free: 2.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.137/3.075, allocations: 4.062 kB / 498.2 MB, free: 2.488 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test14/Test14.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[5004]=2.000000 File[503]=0.501000 Error: Could not read variable trapezoid1.T_start in file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat. Warning: Get data of variable trapezoid1.T_start from file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat failed! Error: Could not read variable trapezoid1.count in file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat. Warning: Get data of variable trapezoid1.count from file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat failed! " Variables in the reference:time,err1.y,trapezoid1.T_start,trapezoid1.count Variables in the result:der(err1.y),err1.initType,err1.k,err1.u,err1.use_reset,err1.use_set,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.nHeaderLines,t_new.nout,t_new.offset[1],t_new.shiftTime,t_new.smoothness,t_new.startTime,t_new.t_max,t_new.t_maxScaled,t_new.t_min,t_new.t_minScaled,t_new.tableOnFile,t_new.table[1,1],t_new.table[1,2],t_new.table[2,1],t_new.table[2,2],t_new.timeEvents,t_new.timeScale,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],threshold,time,trapezoid1.amplitude,trapezoid1.falling,trapezoid1.nperiod,trapezoid1.offset,trapezoid1.period,trapezoid1.rising,trapezoid1.startTime,trapezoid1.width,trapezoid1.y