Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.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.Test4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test4",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.001105/0.001105, allocations: 106.9 kB / 17.21 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.001153/0.001153, 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.427/1.427, allocations: 222.9 MB / 241.8 MB, free: 15.58 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.2068/0.2068, allocations: 44.17 MB / 336.1 MB, free: 3.027 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001358, allocations: 59.28 kB / 407.8 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1574, allocations: 60.83 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.004497/0.162, allocations: 1.787 MB / 470.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.1634, allocations: 0.8537 MB / 471.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.291e-05/0.1635, allocations: 4 kB / 471.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003903/0.1639, allocations: 87.7 kB / 471.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.1642, allocations: 67.8 kB / 471.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.1645, allocations: 111.2 kB / 471.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.1647, allocations: 99.75 kB / 471.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.1648, allocations: 8 kB / 471.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001029/0.1649, allocations: 51.77 kB / 471.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.1651, allocations: 55.75 kB / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.1651, allocations: 11.94 kB / 471.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.1652, allocations: 55.98 kB / 471.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.1653, allocations: 27.84 kB / 471.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.083e-05/0.1653, allocations: 35.73 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002111/0.1656, allocations: 135.8 kB / 472 MB, free: 11.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1656, allocations: 0 / 472 MB, free: 11.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1656, allocations: 0 / 472 MB, free: 11.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1656, allocations: 0 / 472 MB, free: 11.35 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005603/0.1662, allocations: 419 kB / 472.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1662, allocations: 16.03 kB / 472.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.92e-05/0.1663, allocations: 30.75 kB / 472.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.927e-05/0.1663, allocations: 16.73 kB / 472.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.1665, allocations: 212 kB / 472.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.1666, allocations: 4.375 kB / 472.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.1666, allocations: 11.92 kB / 472.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001632/0.1668, allocations: 57.67 kB / 472.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.1668, allocations: 0 / 472.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.1668, allocations: 4 kB / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.1668, allocations: 0 / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.232e-05/0.1669, allocations: 27.92 kB / 472.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003865/0.1673, allocations: 312.6 kB / 473.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.1676, allocations: 58.55 kB / 473.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.083e-05/0.1676, allocations: 24.97 kB / 473.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.1677, allocations: 4 kB / 473.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001894/0.1679, allocations: 67.39 kB / 473.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.1679, allocations: 0 / 473.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007596/0.1687, allocations: 237.1 kB / 473.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.1687, allocations: 63.33 kB / 473.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000196/0.1689, allocations: 211.2 kB / 473.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.1689, allocations: 29.7 kB / 473.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.022e-05/0.169, allocations: 108.1 kB / 473.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.407e-05/0.1691, allocations: 31.55 kB / 473.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.205e-05/0.1691, allocations: 25.72 kB / 473.9 MB, free: 9.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.1693, allocations: 322.8 kB / 474.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.634e-05/0.1694, allocations: 31.98 kB / 474.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.45e-05/0.1695, allocations: 41.7 kB / 474.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001563/0.1697, allocations: 89.58 kB / 474.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1697, allocations: 0 / 474.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002348/0.1699, allocations: 121.5 kB / 474.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.1699, allocations: 8 kB / 474.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.17, allocations: 0 / 474.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.17, allocations: 4 kB / 474.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.814e-05/0.1701, allocations: 35.8 kB / 474.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.1701, allocations: 4 kB / 474.6 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.597e-05/0.1701, allocations: 4.031 kB / 474.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.1702, allocations: 4 kB / 474.6 MB, free: 8.516 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 (13): * Single equations (assignments): 13 * 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.0001292/0.1703, allocations: 133.8 kB / 474.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.788e-05/0.1703, allocations: 15.81 kB / 474.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.962e-05/0.1704, allocations: 22.09 kB / 474.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.1704, allocations: 3.938 kB / 474.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.1704, allocations: 4 kB / 474.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1704, allocations: 0 / 474.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005645/0.171, allocations: 452 kB / 475.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.171, allocations: 0 / 475.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.802e-05/0.1711, allocations: 19.92 kB / 475.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.1711, allocations: 4 kB / 475.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.1711, allocations: 0 / 475.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1711, allocations: 0 / 475.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1711, allocations: 4 kB / 475.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000296/0.1714, allocations: 237 kB / 475.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-05/0.1715, allocations: 85.02 kB / 475.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.614e-05/0.1715, allocations: 3.938 kB / 475.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.587e-05/0.1716, allocations: 8 kB / 475.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.904e-05/0.1717, allocations: 7.984 kB / 475.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.1717, allocations: 8 kB / 475.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001454/0.1718, allocations: 159.2 kB / 475.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1718, allocations: 0 / 475.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002749/0.1721, allocations: 28 kB / 475.8 MB, free: 7.234 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 (11): * Single equations (assignments): 9 * 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.00177/0.1739, allocations: 1.185 MB / 476.9 MB, free: 6.227 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002028/0.1741, allocations: 79.91 kB / 477 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1741, allocations: 0 / 477 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.714e-05/0.1742, allocations: 43.86 kB / 477.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.1746, allocations: 33.89 kB / 477.1 MB, free: 6.078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.1764, allocations: 1.815 MB / 478.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.1767, allocations: 0.7119 MB / 479.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.292e-05/0.1768, allocations: 24.62 kB / 479.7 MB, free: 3.402 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.002e-05/0.1769, allocations: 39.42 kB / 479.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1769, allocations: 4 kB / 479.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01408/0.1909, allocations: 3.54 MB / 483.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/0.1911, allocations: 243.7 kB / 483.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.131, allocations: 3.938 kB / 483.5 MB, free: 15.66 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test4_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test4.fmu > ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test4/Test4.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,t_new.y[1],d_t_new.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,der(d2_t_new.u),der(d_t_new.u),der(der(t_new.timeScaled)),der(t_new.timeScaled),t_new.columns[1],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[2,1],t_new.table[2,2],t_new.table[3,1],t_new.table[3,2],t_new.table[4,1],t_new.table[4,2],t_new.table[5,1],t_new.table[5,2],t_new.timeEvents,t_new.timeScale,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],time