Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000756/0.0007559, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008745/0.0008745, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.191/0.191, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002672, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1166, allocations: 63.57 MB / 483.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.002332/0.119, allocations: 1.458 MB / 484.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.1206, allocations: 1.002 MB / 485.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.338e-05/0.1208, allocations: 3.938 kB / 485.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003052/0.1211, allocations: 79.83 kB / 485.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002962/0.1214, allocations: 95.7 kB / 485.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.1216, allocations: 71.8 kB / 485.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001783/0.1218, allocations: 107.7 kB / 486 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.958e-05/0.1219, allocations: 12 kB / 486 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.122, allocations: 59.7 kB / 486.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.716e-05/0.1221, allocations: 51.75 kB / 486.1 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.1222, allocations: 4 kB / 486.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001228/0.1223, allocations: 55.98 kB / 486.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.822e-05/0.1223, allocations: 19.92 kB / 486.2 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.889e-05/0.1224, allocations: 69.36 kB / 486.3 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001943/0.1226, allocations: 135.8 kB / 486.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1226, allocations: 7.938 kB / 486.4 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.1226, allocations: 4 kB / 486.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.1226, allocations: 0 / 486.4 MB, free: 0.8008 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.000498/0.1231, allocations: 407.1 kB / 486.8 MB, free: 364 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.1232, allocations: 8.875 kB / 486.8 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.832e-05/0.1232, allocations: 30.75 kB / 486.8 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.56e-05/0.1233, allocations: 16.75 kB / 486.9 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/0.1235, allocations: 212.6 kB / 487.1 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1235, allocations: 4.375 kB / 487.1 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.071e-05/0.1235, allocations: 15.84 kB / 487.1 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001593/0.1237, allocations: 65.59 kB / 487.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.1237, allocations: 0 / 487.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.1237, allocations: 7.922 kB / 487.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.1238, allocations: 4 kB / 487.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.533e-05/0.1238, allocations: 23.92 kB / 487.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003572/0.1242, allocations: 304.7 kB / 487.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002176/0.1244, allocations: 66.48 kB / 487.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.596e-05/0.1245, allocations: 24.97 kB / 487.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.1245, allocations: 0 / 487.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000153/0.1247, allocations: 71.39 kB / 487.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.1247, allocations: 0 / 487.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007175/0.1254, allocations: 245.4 kB / 487.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.1255, allocations: 59.34 kB / 487.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.1257, allocations: 215.5 kB / 488.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.1257, allocations: 25.7 kB / 488.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.925e-05/0.1258, allocations: 112.1 kB / 488.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.1258, allocations: 43.55 kB / 488.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.918e-05/0.1258, allocations: 17.72 kB / 488.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.126, allocations: 330.8 kB / 488.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.965e-05/0.126, allocations: 35.98 kB / 488.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.123e-05/0.1261, allocations: 41.7 kB / 488.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001399/0.1263, allocations: 81.64 kB / 488.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.81e-07/0.1263, allocations: 0 / 488.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002075/0.1265, allocations: 121.4 kB / 488.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.1265, allocations: 12.03 kB / 489 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.1265, allocations: 0 / 489 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1265, allocations: 3.984 kB / 489 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.658e-05/0.1266, allocations: 19.94 kB / 489 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.1266, allocations: 7.938 kB / 489 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.081e-05/0.1267, allocations: 7.984 kB / 489 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.916e-06/0.1267, allocations: 4 kB / 489 MB, free: 13.96 MB / 366.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.0001051/0.1268, allocations: 129.8 kB / 489.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.445e-05/0.1268, allocations: 15.81 kB / 489.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.558e-05/0.1269, allocations: 25.39 kB / 489.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1269, allocations: 3.938 kB / 489.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1269, allocations: 0 / 489.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1269, allocations: 3.938 kB / 489.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004869/0.1274, allocations: 452 kB / 489.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1274, allocations: 0 / 489.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.638e-05/0.1275, allocations: 20.05 kB / 489.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1275, allocations: 96 / 489.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.1275, allocations: 11.94 kB / 489.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.1275, allocations: 0 / 489.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/0.1275, allocations: 3.938 kB / 489.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.1278, allocations: 233 kB / 489.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.638e-05/0.1278, allocations: 92.92 kB / 490 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.1279, allocations: 4 kB / 490 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.391e-05/0.1279, allocations: 4 kB / 490 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.128, allocations: 7.984 kB / 490 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.128, allocations: 8 kB / 490 MB, free: 12.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.1281, allocations: 165.2 kB / 490.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.423e-06/0.1282, allocations: 3.938 kB / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002667/0.1284, allocations: 35.94 kB / 490.2 MB, free: 12.65 MB / 366.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.001522/0.13, allocations: 1.175 MB / 491.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001921/0.1302, allocations: 79.91 kB / 491.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1302, allocations: 0 / 491.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.002e-05/0.1303, allocations: 35.98 kB / 491.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.1306, allocations: 34.91 kB / 491.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.1324, allocations: 1.837 MB / 493.4 MB, free: 9.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.1327, allocations: 0.7196 MB / 494.1 MB, free: 8.812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.551e-05/0.1328, allocations: 20.62 kB / 494.1 MB, free: 8.793 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.784e-05/0.1329, allocations: 39.42 kB / 494.1 MB, free: 8.754 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1329, allocations: 0 / 494.1 MB, free: 8.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01289/0.1458, allocations: 3.436 MB / 497.6 MB, free: 5.441 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002256/0.146, allocations: 240 kB / 497.8 MB, free: 5.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/1.986, allocations: 0 / 497.8 MB, free: 5.18 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test4_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test4_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test4.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test4.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_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.nHeaderLines,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