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.001419/0.001419, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001673/0.001673, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2181/0.2181, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001543, allocations: 78.67 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1068, allocations: 62.44 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.003717/0.1106, allocations: 1.754 MB / 481.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.1124, allocations: 1.025 MB / 482.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.785e-05/0.1125, allocations: 0 / 482.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003236/0.1129, allocations: 87.7 kB / 483 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003612/0.1132, allocations: 115.5 kB / 483.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.1135, allocations: 83.66 kB / 483.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002383/0.1138, allocations: 115.7 kB / 483.3 MB, free: 2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.1139, allocations: 19.97 kB / 483.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.114, allocations: 55.72 kB / 483.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001183/0.1141, allocations: 51.83 kB / 483.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.1142, allocations: 4 kB / 483.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001497/0.1143, allocations: 63.97 kB / 483.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.635e-05/0.1144, allocations: 31.84 kB / 483.5 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.466e-05/0.1145, allocations: 35.69 kB / 483.6 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002609/0.1147, allocations: 139.8 kB / 483.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1147, allocations: 0 / 483.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1148, allocations: 0 / 483.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1148, allocations: 0 / 483.7 MB, free: 1.605 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.0007086/0.1155, allocations: 438.9 kB / 484.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.1155, allocations: 12.03 kB / 484.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.401e-05/0.1156, allocations: 30.75 kB / 484.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.453e-05/0.1156, allocations: 16.75 kB / 484.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003431/0.116, allocations: 219.9 kB / 484.4 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.888e-06/0.116, allocations: 384 / 484.4 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.572e-05/0.116, allocations: 7.938 kB / 484.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.1162, allocations: 65.59 kB / 484.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1162, allocations: 0 / 484.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.1162, allocations: 8 kB / 484.5 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.1162, allocations: 0 / 484.5 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.066e-05/0.1163, allocations: 23.98 kB / 484.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000419/0.1167, allocations: 308.7 kB / 484.8 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002397/0.117, allocations: 58.55 kB / 484.9 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.054e-05/0.1171, allocations: 24.98 kB / 484.9 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.1171, allocations: 3.984 kB / 484.9 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002008/0.1173, allocations: 71.33 kB / 485 MB, free: 172 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.1173, allocations: 0 / 485 MB, free: 172 kB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000798/0.1181, allocations: 241.5 kB / 485.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.1182, allocations: 63.33 kB / 485.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002069/0.1184, allocations: 216.3 kB / 485.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.1184, allocations: 29.7 kB / 485.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.403e-05/0.1185, allocations: 112.1 kB / 485.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.838e-05/0.1185, allocations: 31.55 kB / 485.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.285e-05/0.1186, allocations: 29.7 kB / 485.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002166/0.1188, allocations: 330.8 kB / 486 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.657e-05/0.1189, allocations: 27.98 kB / 486 MB, free: 15.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.604e-05/0.119, allocations: 49.7 kB / 486.1 MB, free: 15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.1192, allocations: 81.58 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.1192, allocations: 0 / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002458/0.1194, allocations: 125.5 kB / 486.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.1194, allocations: 7.938 kB / 486.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.046e-06/0.1195, allocations: 3.984 kB / 486.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.1195, allocations: 0 / 486.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.436e-05/0.1196, allocations: 31.97 kB / 486.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.1196, allocations: 240 / 486.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.219e-05/0.1197, allocations: 3.984 kB / 486.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1197, allocations: 11.98 kB / 486.3 MB, free: 14.73 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.0001269/0.1198, allocations: 125.8 kB / 486.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.176e-05/0.1199, allocations: 19.8 kB / 486.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.833e-05/0.1199, allocations: 17.41 kB / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1199, allocations: 15.8 kB / 486.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1199, allocations: 0 / 486.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.12, allocations: 4 kB / 486.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006015/0.1206, allocations: 459.9 kB / 487 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1206, allocations: 0 / 487 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.051e-05/0.1207, allocations: 19.92 kB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.1207, allocations: 0 / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.1207, allocations: 4 kB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1207, allocations: 4.062 kB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1207, allocations: 0 / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000399/0.1211, allocations: 233 kB / 487.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.333e-05/0.1212, allocations: 92.92 kB / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.846e-05/0.1212, allocations: 0 / 487.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.857e-05/0.1213, allocations: 4 kB / 487.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.1214, allocations: 15.98 kB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.1214, allocations: 4 kB / 487.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.1215, allocations: 173.1 kB / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1215, allocations: 0 / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003001/0.1219, allocations: 28 kB / 487.5 MB, free: 13.42 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.001709/0.1236, allocations: 1.171 MB / 488.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002844/0.1239, allocations: 83.84 kB / 488.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1239, allocations: 0 / 488.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.77e-05/0.124, allocations: 43.92 kB / 488.8 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003757/0.1244, allocations: 32.16 kB / 488.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.1265, allocations: 1.808 MB / 490.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.1268, allocations: 0.7119 MB / 491.4 MB, free: 9.617 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.793e-05/0.1269, allocations: 24.62 kB / 491.4 MB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.586e-05/0.127, allocations: 43.42 kB / 491.4 MB, free: 9.551 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.127, allocations: 0 / 491.4 MB, free: 9.551 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02267/0.1497, allocations: 3.809 MB / 495.2 MB, free: 5.805 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.205/7.355, allocations: 0 / 495.2 MB, free: 5.805 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