Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test7.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.Test7,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test7,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test7",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.001503/0.001503, allocations: 104.5 kB / 17.63 MB, free: 5.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.001677/0.001677, allocations: 192 kB / 18.56 MB, free: 4.434 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.458/1.458, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2075/0.2075, allocations: 44.19 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 65.09 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1249, allocations: 60.84 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test7): time 0.003777/0.1288, allocations: 1.719 MB / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.1304, allocations: 0.8808 MB / 472 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.1305, allocations: 4 kB / 472 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003902/0.1309, allocations: 99.67 kB / 472.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003288/0.1313, allocations: 87.64 kB / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004534/0.1318, allocations: 119.6 kB / 472.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000282/0.1321, allocations: 111.7 kB / 472.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.1322, allocations: 19.97 kB / 472.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001486/0.1324, allocations: 51.78 kB / 472.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001502/0.1326, allocations: 63.75 kB / 472.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.1326, allocations: 4 kB / 472.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001616/0.1328, allocations: 59.98 kB / 472.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.646e-05/0.1328, allocations: 31.89 kB / 472.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.16e-05/0.1329, allocations: 43.62 kB / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.1332, allocations: 127.9 kB / 472.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1332, allocations: 3.938 kB / 472.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1332, allocations: 3.938 kB / 472.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.1332, allocations: 4 kB / 472.8 MB, free: 10.81 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.0006357/0.1338, allocations: 442.8 kB / 473.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.1339, allocations: 12.03 kB / 473.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.468e-05/0.1339, allocations: 30.75 kB / 473.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.665e-05/0.134, allocations: 20.75 kB / 473.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.1343, allocations: 212.9 kB / 473.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.1343, allocations: 4.375 kB / 473.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.132e-05/0.1343, allocations: 3.938 kB / 473.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001737/0.1345, allocations: 61.61 kB / 473.6 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.1345, allocations: 0 / 473.6 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.1345, allocations: 4 kB / 473.6 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.1346, allocations: 4 kB / 473.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.994e-05/0.1347, allocations: 23.97 kB / 473.6 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004401/0.1351, allocations: 308.7 kB / 473.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002572/0.1354, allocations: 66.48 kB / 474 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.784e-05/0.1354, allocations: 16.98 kB / 474 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.1355, allocations: 0 / 474 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002217/0.1357, allocations: 75.38 kB / 474.1 MB, free: 9.375 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.803e-06/0.1357, allocations: 3.938 kB / 474.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008027/0.1365, allocations: 249 kB / 474.3 MB, free: 9.121 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/0.1366, allocations: 55.34 kB / 474.4 MB, free: 9.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002816/0.1369, allocations: 242.3 kB / 474.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.1369, allocations: 25.7 kB / 474.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.313e-05/0.137, allocations: 116.1 kB / 474.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.984e-05/0.1371, allocations: 27.56 kB / 474.8 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/0.1371, allocations: 33.64 kB / 474.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1373, allocations: 326.8 kB / 475.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.874e-05/0.1373, allocations: 27.98 kB / 475.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.834e-05/0.1374, allocations: 45.7 kB / 475.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.1376, allocations: 81.7 kB / 475.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.1376, allocations: 0 / 475.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002334/0.1379, allocations: 129.4 kB / 475.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.1379, allocations: 4 kB / 475.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1379, allocations: 0 / 475.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.1379, allocations: 4 kB / 475.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.642e-05/0.138, allocations: 27.92 kB / 475.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.138, allocations: 3.938 kB / 475.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.194e-05/0.1381, allocations: 8 kB / 475.4 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.1381, allocations: 11.97 kB / 475.4 MB, free: 7.91 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.000117/0.1382, allocations: 132.6 kB / 475.6 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.005e-05/0.1383, allocations: 15.81 kB / 475.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.859e-05/0.1383, allocations: 29.38 kB / 475.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1384, allocations: 3.938 kB / 475.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.1384, allocations: 0 / 475.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1384, allocations: 0 / 475.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006171/0.139, allocations: 459.9 kB / 476.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.139, allocations: 4 kB / 476.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.317e-05/0.1391, allocations: 12 kB / 476.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1391, allocations: 0 / 476.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.1391, allocations: 7.984 kB / 476.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.1391, allocations: 4 kB / 476.1 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.1391, allocations: 7.875 kB / 476.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002851/0.1394, allocations: 229.1 kB / 476.3 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.518e-05/0.1395, allocations: 85.02 kB / 476.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.1395, allocations: 11.98 kB / 476.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.454e-05/0.1396, allocations: 4 kB / 476.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.942e-05/0.1396, allocations: 7.984 kB / 476.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.1396, allocations: 4 kB / 476.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001482/0.1398, allocations: 188.3 kB / 476.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.964e-06/0.1398, allocations: 0 / 476.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002847/0.1401, allocations: 35.94 kB / 476.7 MB, free: 6.586 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.001643/0.1417, allocations: 1.182 MB / 477.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002135/0.142, allocations: 83.84 kB / 477.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.142, allocations: 4 kB / 477.9 MB, free: 5.496 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.483e-05/0.1421, allocations: 35.92 kB / 478 MB, free: 5.461 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.1424, allocations: 40.08 kB / 478 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.1446, allocations: 1.841 MB / 479.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.145, allocations: 0.7233 MB / 480.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.949e-05/0.1451, allocations: 12.64 kB / 480.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.98e-05/0.1451, allocations: 47.42 kB / 480.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1452, allocations: 0 / 480.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02373/0.1689, allocations: 3.868 MB / 484.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.488/7.657, allocations: 3.281 kB / 484.5 MB, free: 14.88 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test7.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test7.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test7.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test7.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test7_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test7_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test7.fmu > ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test7.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test7_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test7/Test7.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test7.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[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],time