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.001055/0.001055, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001096/0.001096, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.358/1.358, allocations: 222.9 MB / 242.3 MB, free: 15.2 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.1991/0.1991, allocations: 44.17 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 65.31 kB / 408.5 MB, free: 27.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1253, allocations: 60.82 MB / 469.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.003755/0.1291, allocations: 1.715 MB / 471.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.1307, allocations: 0.8886 MB / 472 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.1309, allocations: 0 / 472 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000411/0.1313, allocations: 83.7 kB / 472.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003182/0.1317, allocations: 79.64 kB / 472.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.1321, allocations: 115 kB / 472.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.1323, allocations: 115.7 kB / 472.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.1325, allocations: 15.98 kB / 472.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.1326, allocations: 51.72 kB / 472.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.1327, allocations: 55.77 kB / 472.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.659e-05/0.1328, allocations: 4 kB / 472.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001603/0.1329, allocations: 63.95 kB / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.378e-05/0.133, allocations: 23.86 kB / 472.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.475e-05/0.1331, allocations: 39.75 kB / 472.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002899/0.1334, allocations: 131.9 kB / 472.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1334, allocations: 4 kB / 472.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.1334, allocations: 0 / 472.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1334, allocations: 3.938 kB / 472.7 MB, free: 10.84 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.0006615/0.1341, allocations: 426.9 kB / 473.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.1341, allocations: 8.031 kB / 473.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.393e-05/0.1342, allocations: 34.75 kB / 473.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.97e-05/0.1342, allocations: 16.73 kB / 473.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002489/0.1345, allocations: 204.1 kB / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.1345, allocations: 8.375 kB / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.646e-05/0.1346, allocations: 7.922 kB / 473.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.1347, allocations: 61.67 kB / 473.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.1348, allocations: 3.938 kB / 473.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.1348, allocations: 0 / 473.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.1348, allocations: 4 kB / 473.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.263e-05/0.1349, allocations: 23.97 kB / 473.5 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000466/0.1354, allocations: 304.7 kB / 473.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002774/0.1357, allocations: 66.48 kB / 473.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.958e-05/0.1357, allocations: 24.97 kB / 473.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.1358, allocations: 0 / 473.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002648/0.136, allocations: 67.39 kB / 474 MB, free: 9.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.064e-06/0.1361, allocations: 4 kB / 474 MB, free: 9.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008809/0.137, allocations: 245.1 kB / 474.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.137, allocations: 55.34 kB / 474.3 MB, free: 9.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.1372, allocations: 207.5 kB / 474.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.1373, allocations: 29.7 kB / 474.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.091e-05/0.1374, allocations: 104.1 kB / 474.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.712e-05/0.1374, allocations: 35.55 kB / 474.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.94e-05/0.1375, allocations: 29.72 kB / 474.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1376, allocations: 322.8 kB / 475 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.656e-05/0.1377, allocations: 35.92 kB / 475 MB, free: 8.332 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.1378, allocations: 45.7 kB / 475.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.138, allocations: 77.7 kB / 475.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.138, allocations: 0 / 475.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002457/0.1382, allocations: 133.4 kB / 475.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1383, allocations: 4 kB / 475.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.1383, allocations: 3.984 kB / 475.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.1383, allocations: 4 kB / 475.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.825e-05/0.1384, allocations: 27.92 kB / 475.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.1384, allocations: 0 / 475.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.265e-05/0.1385, allocations: 7.938 kB / 475.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.1385, allocations: 4 kB / 475.3 MB, free: 8.012 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.0001427/0.1386, allocations: 141.7 kB / 475.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.757e-05/0.1387, allocations: 11.81 kB / 475.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.177e-05/0.1387, allocations: 25.39 kB / 475.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.1387, allocations: 3.938 kB / 475.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1388, allocations: 0 / 475.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1388, allocations: 0 / 475.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006087/0.1394, allocations: 448.1 kB / 475.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.1394, allocations: 4.031 kB / 475.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.797e-05/0.1395, allocations: 15.98 kB / 476 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1395, allocations: 0 / 476 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.1395, allocations: 4 kB / 476 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.1395, allocations: 0 / 476 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1395, allocations: 0 / 476 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003287/0.1398, allocations: 248.9 kB / 476.2 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.068e-05/0.1399, allocations: 85.02 kB / 476.3 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.913e-05/0.1399, allocations: 0 / 476.3 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.126e-05/0.14, allocations: 11.98 kB / 476.3 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.069e-05/0.1401, allocations: 4 kB / 476.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.855e-05/0.1401, allocations: 4 kB / 476.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001429/0.1402, allocations: 164.2 kB / 476.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1402, allocations: 0 / 476.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002878/0.1405, allocations: 32 kB / 476.5 MB, free: 6.723 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.001756/0.1423, allocations: 1.17 MB / 477.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002343/0.1426, allocations: 91.78 kB / 477.8 MB, free: 5.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1426, allocations: 0 / 477.8 MB, free: 5.641 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.761e-05/0.1427, allocations: 43.86 kB / 477.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003948/0.1431, allocations: 39.34 kB / 477.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.1452, allocations: 1.776 MB / 479.6 MB, free: 3.684 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.1456, allocations: 0.7155 MB / 480.3 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.911e-05/0.1456, allocations: 16.64 kB / 480.3 MB, free: 2.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.97e-05/0.1457, allocations: 39.42 kB / 480.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1457, allocations: 0 / 480.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/0.1695, allocations: 3.734 MB / 484.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.679, allocations: 0.625 kB / 484.1 MB, free: 15.24 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