Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.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.Test5,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test5,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008435/0.0008435, allocations: 93.22 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.001217/0.001217, allocations: 203.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.391/1.391, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2032/0.2032, allocations: 46.18 MB / 345.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002282/0.0002282, allocations: 11.98 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1076, allocations: 63.56 MB / 483.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test5): time 0.001998/0.1096, allocations: 1.481 MB / 484.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.1114, allocations: 1.002 MB / 485.7 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.62e-05/0.1115, allocations: 4 kB / 485.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003201/0.1118, allocations: 103.7 kB / 485.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002604/0.1121, allocations: 111.7 kB / 485.9 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.1123, allocations: 71.75 kB / 486 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002021/0.1125, allocations: 123.7 kB / 486.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.1127, allocations: 29.33 kB / 486.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.721e-05/0.1128, allocations: 51.77 kB / 486.2 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002227/0.113, allocations: 75.67 kB / 486.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.503e-05/0.113, allocations: 0 / 486.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.1131, allocations: 55.98 kB / 486.3 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.292e-05/0.1132, allocations: 31.89 kB / 486.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.577e-05/0.1133, allocations: 69.33 kB / 486.4 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002993/0.1136, allocations: 155.8 kB / 486.5 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1136, allocations: 4 kB / 486.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1136, allocations: 0 / 486.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.157e-06/0.1136, allocations: 0 / 486.5 MB, free: 0.6992 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005972/0.1142, allocations: 438.8 kB / 487 MB, free: 228 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1143, allocations: 8.875 kB / 487 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.624e-05/0.1143, allocations: 42.73 kB / 487 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.036e-05/0.1144, allocations: 20.69 kB / 487 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.1147, allocations: 221 kB / 487.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.1147, allocations: 4.375 kB / 487.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.1147, allocations: 11.92 kB / 487.3 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.1149, allocations: 73.61 kB / 487.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.1149, allocations: 7.891 kB / 487.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.115, allocations: 7.938 kB / 487.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.115, allocations: 0 / 487.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.1151, allocations: 31.98 kB / 487.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005049/0.1156, allocations: 332.7 kB / 487.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002766/0.1159, allocations: 78.48 kB / 487.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.27e-05/0.116, allocations: 24.84 kB / 487.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.116, allocations: 0 / 487.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.1162, allocations: 79.38 kB / 487.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/0.1162, allocations: 4 kB / 487.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009136/0.1171, allocations: 304.8 kB / 488.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.1172, allocations: 55.41 kB / 488.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002939/0.1175, allocations: 255.8 kB / 488.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.1175, allocations: 30.55 kB / 488.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.557e-05/0.1176, allocations: 112.1 kB / 488.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.32e-05/0.1177, allocations: 47.36 kB / 488.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/0.1177, allocations: 21.72 kB / 488.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1179, allocations: 330.8 kB / 489 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.474e-05/0.118, allocations: 35.98 kB / 489.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.972e-05/0.1181, allocations: 56.38 kB / 489.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.1183, allocations: 109.1 kB / 489.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1183, allocations: 0 / 489.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002701/0.1186, allocations: 165.4 kB / 489.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.1186, allocations: 11.98 kB / 489.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1186, allocations: 0 / 489.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.851e-05/0.1187, allocations: 3.938 kB / 489.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.1188, allocations: 24.11 kB / 489.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.1188, allocations: 7.922 kB / 489.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.821e-05/0.1188, allocations: 4 kB / 489.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.1189, allocations: 11.98 kB / 489.4 MB, free: 13.55 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 (16): * Single equations (assignments): 16 * 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.0001243/0.119, allocations: 141.8 kB / 489.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.729e-05/0.119, allocations: 15.81 kB / 489.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.434e-05/0.1191, allocations: 29.45 kB / 489.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1191, allocations: 0 / 489.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.1191, allocations: 4 kB / 489.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1191, allocations: 0 / 489.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007034/0.1198, allocations: 0.5038 MB / 490.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.1199, allocations: 7.984 kB / 490.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.654e-05/0.1199, allocations: 19.94 kB / 490.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.1199, allocations: 4 kB / 490.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.1199, allocations: 0 / 490.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.12, allocations: 7.984 kB / 490.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.12, allocations: 0 / 490.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002977/0.1203, allocations: 272.9 kB / 490.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.329e-05/0.1203, allocations: 96.83 kB / 490.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.855e-05/0.1204, allocations: 4 kB / 490.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.011e-05/0.1205, allocations: 7.984 kB / 490.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.1205, allocations: 8 kB / 490.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.1205, allocations: 7.984 kB / 490.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002521/0.1208, allocations: 197.5 kB / 490.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1208, allocations: 4 kB / 490.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003059/0.1211, allocations: 35.98 kB / 490.8 MB, free: 12.08 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 (14): * Single equations (assignments): 12 * 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.00181/0.1229, allocations: 1.194 MB / 492 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002323/0.1232, allocations: 98.66 kB / 492.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1232, allocations: 0 / 492.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.1233, allocations: 59.84 kB / 492.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.1237, allocations: 27.98 kB / 492.2 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.1259, allocations: 2.035 MB / 494.2 MB, free: 8.734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.1263, allocations: 0.7282 MB / 494.9 MB, free: 7.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.312e-05/0.1264, allocations: 29.41 kB / 495 MB, free: 7.953 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.1265, allocations: 51.41 kB / 495 MB, free: 7.902 MB / 366.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1265, allocations: 3.938 kB / 495 MB, free: 7.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01461/0.1411, allocations: 3.855 MB / 498.9 MB, free: 4.172 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002254/0.1414, allocations: 240 kB / 499.1 MB, free: 3.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/1.957, allocations: 0 / 499.1 MB, free: 3.91 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test5/Test5.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,t_new.y[1],t_new.y[2],d_t_new.y,d_t_new2.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,d_t_new2.u,d_t_new2.y,der(d2_t_new.u),der(d_t_new.u),der(d_t_new2.u),der(der(t_new.timeScaled)),der(t_new.timeScaled),t_new.columns[1],t_new.columns[2],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[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],t_new.y[2],time