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.0007629/0.000763, allocations: 94.72 kB / 17.35 MB, free: 6.344 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.0008657/0.0008657, allocations: 170.5 kB / 18.25 MB, free: 5.508 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.271/1.271, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2002/0.2002, allocations: 44.25 MB / 337.7 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003014/0.0003014, allocations: 8 kB / 410.4 MB, free: 27.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1188, allocations: 61.92 MB / 472.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.002411/0.1212, allocations: 1.448 MB / 473.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.1228, allocations: 0.8382 MB / 474.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.1229, allocations: 0 / 474.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003671/0.1233, allocations: 91.75 kB / 474.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002377/0.1235, allocations: 63.81 kB / 474.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.1239, allocations: 99.27 kB / 474.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001852/0.1241, allocations: 107.7 kB / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.1242, allocations: 15.98 kB / 475 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.1243, allocations: 47.77 kB / 475.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.1244, allocations: 51.77 kB / 475.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.638e-05/0.1244, allocations: 8 kB / 475.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001339/0.1246, allocations: 55.97 kB / 475.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.813e-05/0.1246, allocations: 23.86 kB / 475.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.987e-05/0.1247, allocations: 65.38 kB / 475.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002085/0.1249, allocations: 131.9 kB / 475.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1249, allocations: 0 / 475.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.125, allocations: 0 / 475.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.125, allocations: 0 / 475.4 MB, free: 10.19 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.0005131/0.1255, allocations: 411 kB / 475.8 MB, free: 9.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.1255, allocations: 12.03 kB / 475.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.397e-05/0.1256, allocations: 34.75 kB / 475.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.18e-05/0.1256, allocations: 12.84 kB / 475.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002265/0.1259, allocations: 219.9 kB / 476.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.1259, allocations: 384 / 476.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.1259, allocations: 7.938 kB / 476.1 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001552/0.1261, allocations: 57.67 kB / 476.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1261, allocations: 0 / 476.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.1261, allocations: 4 kB / 476.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.1261, allocations: 0 / 476.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.994e-05/0.1262, allocations: 27.97 kB / 476.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003852/0.1266, allocations: 300.7 kB / 476.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002583/0.1269, allocations: 66.53 kB / 476.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.879e-05/0.1269, allocations: 20.97 kB / 476.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.127, allocations: 0 / 476.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.1272, allocations: 75.3 kB / 476.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.502e-06/0.1272, allocations: 0 / 476.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007704/0.128, allocations: 249.5 kB / 476.9 MB, free: 8.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.128, allocations: 55.34 kB / 476.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.1282, allocations: 215.2 kB / 477.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.1282, allocations: 29.7 kB / 477.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.279e-05/0.1283, allocations: 108.1 kB / 477.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.951e-05/0.1284, allocations: 31.55 kB / 477.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.295e-05/0.1284, allocations: 17.72 kB / 477.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1285, allocations: 326.8 kB / 477.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.213e-05/0.1286, allocations: 28 kB / 477.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.5e-05/0.1287, allocations: 45.69 kB / 477.7 MB, free: 7.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.1288, allocations: 81.66 kB / 477.8 MB, free: 7.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1288, allocations: 0 / 477.8 MB, free: 7.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002201/0.129, allocations: 125.4 kB / 477.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1291, allocations: 4 kB / 477.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1291, allocations: 4 kB / 477.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.1291, allocations: 0 / 477.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.397e-05/0.1292, allocations: 31.86 kB / 477.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.1292, allocations: 4 kB / 477.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.131e-05/0.1293, allocations: 4.031 kB / 477.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.1293, allocations: 7.938 kB / 478 MB, free: 7.379 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.0001103/0.1294, allocations: 133.8 kB / 478.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/0.1294, allocations: 15.81 kB / 478.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.842e-05/0.1295, allocations: 21.39 kB / 478.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.1295, allocations: 7.938 kB / 478.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1295, allocations: 0 / 478.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1295, allocations: 0 / 478.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004854/0.13, allocations: 452 kB / 478.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.13, allocations: 0 / 478.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.751e-05/0.1301, allocations: 19.94 kB / 478.6 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.1301, allocations: 4 kB / 478.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.1301, allocations: 0 / 478.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.1301, allocations: 3.984 kB / 478.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1301, allocations: 4 kB / 478.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002451/0.1304, allocations: 237 kB / 478.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.043e-05/0.1304, allocations: 89 kB / 478.9 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.1305, allocations: 11.94 kB / 478.9 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.131e-05/0.1305, allocations: 0 / 478.9 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.705e-05/0.1306, allocations: 7.984 kB / 478.9 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.1306, allocations: 12 kB / 479 MB, free: 6.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001649/0.1308, allocations: 155.2 kB / 479.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1308, allocations: 0 / 479.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002711/0.1311, allocations: 35.98 kB / 479.1 MB, free: 6.082 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.001563/0.1326, allocations: 1.18 MB / 480.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001933/0.1328, allocations: 79.84 kB / 480.4 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1329, allocations: 0 / 480.4 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.345e-05/0.1329, allocations: 39.92 kB / 480.4 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.1333, allocations: 32.11 kB / 480.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/0.1351, allocations: 1.812 MB / 482.3 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.1354, allocations: 0.7119 MB / 483 MB, free: 2.281 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.332e-05/0.1355, allocations: 20.62 kB / 483 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.796e-05/0.1356, allocations: 47.42 kB / 483.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1356, allocations: 0 / 483.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01373/0.1493, allocations: 3.351 MB / 486.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002352/0.1496, allocations: 241 kB / 486.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/1.921, allocations: 3.938 kB / 486.6 MB, free: 14.72 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