Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test5,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test5,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 107.3 kB / 17.2 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.611/1.611, allocations: 222.9 MB / 241.8 MB, free: 15.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2547/0.2547, allocations: 44.17 MB / 336.1 MB, free: 3.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 64.16 kB / 407.8 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1276, allocations: 60.83 MB / 468.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test5): time 0.003619/0.1312, allocations: 1.796 MB / 470.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.1327, allocations: 0.8731 MB / 471.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.584e-05/0.1328, allocations: 4 kB / 471.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003439/0.1332, allocations: 103.7 kB / 471.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002303/0.1334, allocations: 79.78 kB / 471.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003406/0.1338, allocations: 95.33 kB / 471.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002045/0.134, allocations: 127.7 kB / 471.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.917e-05/0.1341, allocations: 19.92 kB / 471.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001113/0.1342, allocations: 55.77 kB / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.1344, allocations: 67.8 kB / 471.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.058e-05/0.1344, allocations: 4 kB / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.1345, allocations: 47.98 kB / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.427e-05/0.1346, allocations: 47.83 kB / 471.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.485e-05/0.1347, allocations: 39.62 kB / 472 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.135, allocations: 151.8 kB / 472.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.135, allocations: 3.984 kB / 472.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.427e-06/0.135, allocations: 4 kB / 472.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.135, allocations: 0 / 472.1 MB, free: 11.21 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006181/0.1356, allocations: 446.8 kB / 472.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.1357, allocations: 8.031 kB / 472.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.734e-05/0.1358, allocations: 34.73 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.829e-05/0.1358, allocations: 20.75 kB / 472.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.1361, allocations: 223.8 kB / 472.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.1361, allocations: 8.375 kB / 472.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.958e-05/0.1362, allocations: 11.92 kB / 472.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.1363, allocations: 69.61 kB / 472.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.1364, allocations: 3.984 kB / 472.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.1364, allocations: 0 / 472.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1364, allocations: 0 / 472.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.1365, allocations: 35.97 kB / 473 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005176/0.137, allocations: 344.5 kB / 473.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003017/0.1373, allocations: 74.55 kB / 473.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.499e-05/0.1374, allocations: 28.84 kB / 473.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.1375, allocations: 3.938 kB / 473.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.1377, allocations: 83.31 kB / 473.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/0.1377, allocations: 0 / 473.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001049/0.1388, allocations: 296.9 kB / 473.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.212e-05/0.1389, allocations: 63.33 kB / 473.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/0.1392, allocations: 243.1 kB / 474.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.1392, allocations: 33.7 kB / 474.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.874e-05/0.1393, allocations: 116 kB / 474.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.962e-05/0.1394, allocations: 43.59 kB / 474.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.122e-05/0.1395, allocations: 33.7 kB / 474.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1397, allocations: 326.8 kB / 474.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.856e-05/0.1398, allocations: 39.98 kB / 474.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.1399, allocations: 57.69 kB / 474.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001871/0.1401, allocations: 97.7 kB / 474.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1401, allocations: 4 kB / 474.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002994/0.1404, allocations: 161.4 kB / 475 MB, free: 8.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.1404, allocations: 8 kB / 475 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.1404, allocations: 0 / 475 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1404, allocations: 4.781 kB / 475 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.1406, allocations: 31.92 kB / 475 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.1406, allocations: 112 / 475 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.722e-05/0.1406, allocations: 15.84 kB / 475 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.1407, allocations: 8.031 kB / 475.1 MB, free: 8.047 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.t_new.nextTimeEvent,$whenCondition1,t_new.nextTimeEventScaled,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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.0001466/0.1408, allocations: 141.8 kB / 475.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.41e-05/0.1409, allocations: 11.81 kB / 475.2 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.522e-05/0.1409, allocations: 25.47 kB / 475.2 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1409, allocations: 0 / 475.2 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.1409, allocations: 3.938 kB / 475.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.141, allocations: 3.984 kB / 475.2 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006806/0.1416, allocations: 0.5038 MB / 475.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.1417, allocations: 4 kB / 475.7 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.811e-05/0.1417, allocations: 16 kB / 475.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1417, allocations: 0 / 475.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.1418, allocations: 7.984 kB / 475.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1418, allocations: 0 / 475.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.1418, allocations: 3.938 kB / 475.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000326/0.1421, allocations: 267.9 kB / 476 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.615e-05/0.1422, allocations: 88.92 kB / 476.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.1422, allocations: 8 kB / 476.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.68e-05/0.1423, allocations: 3.984 kB / 476.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.633e-05/0.1423, allocations: 12 kB / 476.1 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.1424, allocations: 7.984 kB / 476.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001669/0.1425, allocations: 192.2 kB / 476.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.1426, allocations: 0 / 476.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.1429, allocations: 32 kB / 476.4 MB, free: 6.617 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001751/0.1446, allocations: 1.211 MB / 477.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002409/0.1449, allocations: 95.91 kB / 477.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1449, allocations: 4 kB / 477.7 MB, free: 5.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.145, allocations: 47.92 kB / 477.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003669/0.1454, allocations: 35.62 kB / 477.8 MB, free: 5.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.1478, allocations: 2.013 MB / 479.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.1482, allocations: 0.7282 MB / 480.5 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.657e-05/0.1483, allocations: 25.41 kB / 480.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.086e-05/0.1484, allocations: 47.42 kB / 480.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1484, allocations: 0 / 480.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.015/0.1634, allocations: 3.988 MB / 484.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002233/0.1636, allocations: 240.4 kB / 484.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.124, allocations: 0 / 484.8 MB, free: 14.32 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test5.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test5_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test5.fmu > ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test5.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test5/Test5.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,t_new.y[1],t_new.y[2],d_t_new.y,d_t_new2.y,d2_t_new.y Variables in the result:d2_t_new.u,d2_t_new.y,d_t_new.u,d_t_new.y,d_t_new2.u,d_t_new2.y,der(d2_t_new.u),der(d_t_new.u),der(d_t_new2.u),der(der(t_new.timeScaled)),der(t_new.timeScaled),t_new.columns[1],t_new.columns[2],t_new.extrapolation,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[1,3],t_new.table[2,1],t_new.table[2,2],t_new.table[2,3],t_new.table[3,1],t_new.table[3,2],t_new.table[3,3],t_new.table[4,1],t_new.table[4,2],t_new.table[4,3],t_new.table[5,1],t_new.table[5,2],t_new.table[5,3],t_new.timeEvents,t_new.timeScale,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],t_new.y[2],time