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.001009/0.00101, allocations: 113 kB / 17.33 MB, free: 6.012 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.0009666/0.0009666, allocations: 193.3 kB / 18.25 MB, free: 5.102 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.42/1.42, allocations: 222.9 MB / 241.9 MB, free: 15.45 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.2538/0.2538, allocations: 44.18 MB / 336.2 MB, free: 2.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 62.62 kB / 408 MB, free: 27.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1539, allocations: 60.83 MB / 468.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test5): time 0.004155/0.1581, allocations: 1.8 MB / 470.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.1599, allocations: 0.8614 MB / 471.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001527/0.1601, allocations: 7.938 kB / 471.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004789/0.1606, allocations: 103.8 kB / 471.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003669/0.161, allocations: 87.77 kB / 471.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.1615, allocations: 95.77 kB / 471.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003029/0.1619, allocations: 131.7 kB / 471.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.162, allocations: 19.98 kB / 471.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.1622, allocations: 63.75 kB / 472 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.1623, allocations: 75.73 kB / 472.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.299e-05/0.1624, allocations: 4 kB / 472.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001945/0.1626, allocations: 59.92 kB / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.829e-05/0.1627, allocations: 31.92 kB / 472.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.615e-05/0.1628, allocations: 55.59 kB / 472.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003584/0.1631, allocations: 147.8 kB / 472.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1632, allocations: 0 / 472.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1632, allocations: 4 kB / 472.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.1632, allocations: 0 / 472.4 MB, free: 11.11 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.0007646/0.164, allocations: 450.7 kB / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.164, allocations: 8.031 kB / 472.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.077e-05/0.1641, allocations: 30.75 kB / 472.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.273e-05/0.1641, allocations: 16.75 kB / 472.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.1645, allocations: 235.8 kB / 473.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.1645, allocations: 8.375 kB / 473.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.771e-05/0.1645, allocations: 7.938 kB / 473.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.1648, allocations: 73.59 kB / 473.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.1648, allocations: 0 / 473.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.1648, allocations: 4 kB / 473.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1648, allocations: 0 / 473.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001715/0.165, allocations: 39.91 kB / 473.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005363/0.1655, allocations: 336.6 kB / 473.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003734/0.1659, allocations: 78.53 kB / 473.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.502e-05/0.166, allocations: 28.84 kB / 473.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/0.1661, allocations: 0 / 473.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002917/0.1664, allocations: 79.33 kB / 473.7 MB, free: 9.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 2.394e-06/0.1664, allocations: 0 / 473.7 MB, free: 9.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001044/0.1674, allocations: 304.8 kB / 474 MB, free: 9.258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.1675, allocations: 55.41 kB / 474.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002677/0.1678, allocations: 247.1 kB / 474.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.1678, allocations: 33.7 kB / 474.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.946e-05/0.1679, allocations: 112 kB / 474.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.137e-05/0.168, allocations: 43.45 kB / 474.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.226e-05/0.168, allocations: 37.7 kB / 474.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1682, allocations: 323.7 kB / 474.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.153e-05/0.1683, allocations: 39.98 kB / 474.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.1684, allocations: 60.36 kB / 475 MB, free: 8.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001862/0.1686, allocations: 104.3 kB / 475.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1686, allocations: 0 / 475.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002984/0.1689, allocations: 161.5 kB / 475.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.169, allocations: 4 kB / 475.2 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.169, allocations: 0 / 475.2 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.169, allocations: 7.875 kB / 475.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.1691, allocations: 31.92 kB / 475.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1691, allocations: 4 kB / 475.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.355e-05/0.1692, allocations: 11.91 kB / 475.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.1692, allocations: 4 kB / 475.3 MB, free: 7.941 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.000168/0.1694, allocations: 145.8 kB / 475.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.869e-05/0.1694, allocations: 15.81 kB / 475.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.958e-05/0.1695, allocations: 25.45 kB / 475.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1695, allocations: 0 / 475.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.1695, allocations: 0 / 475.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.1695, allocations: 0 / 475.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000796/0.1703, allocations: 0.5002 MB / 476 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1704, allocations: 4 kB / 476 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.7e-05/0.1704, allocations: 23.92 kB / 476 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.1704, allocations: 3.984 kB / 476 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.1705, allocations: 4 kB / 476 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.1705, allocations: 0 / 476 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.1705, allocations: 0 / 476 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003722/0.1709, allocations: 261 kB / 476.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.805e-05/0.1709, allocations: 96.91 kB / 476.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.171, allocations: 4 kB / 476.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.838e-05/0.1711, allocations: 4 kB / 476.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.529e-05/0.1711, allocations: 15.92 kB / 476.4 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.1712, allocations: 4 kB / 476.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001901/0.1714, allocations: 196.2 kB / 476.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1714, allocations: 0 / 476.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.1717, allocations: 35.98 kB / 476.6 MB, free: 6.504 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.0022/0.1739, allocations: 1.207 MB / 477.8 MB, free: 5.477 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000306/0.1742, allocations: 119.7 kB / 477.9 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1743, allocations: 0 / 477.9 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.1744, allocations: 51.92 kB / 478 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004195/0.1748, allocations: 27.97 kB / 478 MB, free: 5.285 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.1774, allocations: 2.008 MB / 480 MB, free: 3.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/0.1778, allocations: 0.724 MB / 480.7 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.991e-05/0.1779, allocations: 37.28 kB / 480.8 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.63e-05/0.178, allocations: 51.42 kB / 480.8 MB, free: 2.344 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.178, allocations: 0 / 480.8 MB, free: 2.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01832/0.1964, allocations: 4.072 MB / 484.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002382/0.1966, allocations: 244.2 kB / 485.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.932/2.129, allocations: 0 / 485.1 MB, free: 14.12 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