Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.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.Test7,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test7,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test7",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001077/0.001077, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001182/0.001182, allocations: 212.6 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2055/0.2055, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002449/0.00245, allocations: 77.08 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1074, allocations: 62.44 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test7): time 0.002958/0.1104, allocations: 1.74 MB / 481.9 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.112, allocations: 1.029 MB / 482.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.155e-05/0.1121, allocations: 0 / 482.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000307/0.1124, allocations: 111.7 kB / 483 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003273/0.1128, allocations: 123.5 kB / 483.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.113, allocations: 79.67 kB / 483.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001776/0.1132, allocations: 127.7 kB / 483.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.975e-05/0.1133, allocations: 15.98 kB / 483.4 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.579e-05/0.1134, allocations: 59.75 kB / 483.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.1135, allocations: 67.75 kB / 483.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.746e-05/0.1135, allocations: 4 kB / 483.5 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.1137, allocations: 59.98 kB / 483.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.535e-05/0.1137, allocations: 27.8 kB / 483.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.594e-05/0.1138, allocations: 51.66 kB / 483.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002089/0.114, allocations: 139.8 kB / 483.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.114, allocations: 0 / 483.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.114, allocations: 0 / 483.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.748e-06/0.114, allocations: 0 / 483.8 MB, free: 1.543 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.0005288/0.1146, allocations: 450.8 kB / 484.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.1146, allocations: 12.03 kB / 484.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.111e-05/0.1147, allocations: 30.75 kB / 484.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.11e-05/0.1147, allocations: 16.75 kB / 484.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/0.1149, allocations: 219.9 kB / 484.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.1149, allocations: 8.312 kB / 484.5 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.167e-05/0.115, allocations: 7.922 kB / 484.5 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001406/0.1151, allocations: 61.67 kB / 484.5 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1151, allocations: 7.938 kB / 484.6 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.1152, allocations: 0 / 484.6 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/0.1152, allocations: 4 kB / 484.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.905e-05/0.1152, allocations: 19.98 kB / 484.6 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003575/0.1156, allocations: 312.6 kB / 484.9 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002143/0.1158, allocations: 58.55 kB / 484.9 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.702e-05/0.1159, allocations: 24.97 kB / 485 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.1159, allocations: 4 kB / 485 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.1161, allocations: 63.39 kB / 485 MB, free: 96 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 4.108e-06/0.1161, allocations: 0 / 485 MB, free: 96 kB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007378/0.1169, allocations: 261.3 kB / 485.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.1169, allocations: 59.34 kB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.1171, allocations: 251.2 kB / 485.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.1172, allocations: 29.7 kB / 485.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.856e-05/0.1172, allocations: 112.1 kB / 485.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.499e-05/0.1173, allocations: 35.55 kB / 485.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.145e-05/0.1173, allocations: 21.72 kB / 485.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.734e-05/0.1174, allocations: 330.8 kB / 486.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.894e-05/0.1175, allocations: 31.98 kB / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.388e-05/0.1176, allocations: 49.64 kB / 486.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.1177, allocations: 77.64 kB / 486.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1177, allocations: 0 / 486.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002145/0.118, allocations: 129.5 kB / 486.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.118, allocations: 4 kB / 486.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.118, allocations: 0 / 486.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.118, allocations: 4.031 kB / 486.4 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.468e-05/0.1181, allocations: 35.86 kB / 486.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.768e-06/0.1181, allocations: 0 / 486.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.797e-05/0.1182, allocations: 8 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.1182, allocations: 0 / 486.4 MB, free: 14.61 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.0001037/0.1183, allocations: 136.6 kB / 486.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.886e-05/0.1183, allocations: 19.75 kB / 486.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.044e-05/0.1184, allocations: 25.39 kB / 486.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1184, allocations: 3.938 kB / 486.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1184, allocations: 4 kB / 486.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1184, allocations: 3.984 kB / 486.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004769/0.1189, allocations: 467.9 kB / 487.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1189, allocations: 0 / 487.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.72e-05/0.119, allocations: 19.92 kB / 487.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.119, allocations: 0 / 487.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.119, allocations: 8.062 kB / 487.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.119, allocations: 0 / 487.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.119, allocations: 0 / 487.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.1193, allocations: 236.9 kB / 487.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.228e-05/0.1193, allocations: 88.92 kB / 487.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.1193, allocations: 4 kB / 487.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.997e-05/0.1194, allocations: 8 kB / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.689e-05/0.1195, allocations: 15.92 kB / 487.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.479e-05/0.1195, allocations: 4 kB / 487.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001449/0.1197, allocations: 188.2 kB / 487.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1197, allocations: 4 kB / 487.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002758/0.1199, allocations: 31.98 kB / 487.7 MB, free: 13.25 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.001489/0.1214, allocations: 1.167 MB / 488.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002053/0.1217, allocations: 91.84 kB / 488.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1217, allocations: 0 / 488.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.563e-05/0.1218, allocations: 43.98 kB / 489 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/0.1221, allocations: 26.98 kB / 489 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.124, allocations: 1.871 MB / 490.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.1243, allocations: 0.7197 MB / 491.6 MB, free: 9.371 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.318e-05/0.1244, allocations: 20.62 kB / 491.6 MB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.208e-05/0.1244, allocations: 47.42 kB / 491.7 MB, free: 9.305 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1244, allocations: 0 / 491.7 MB, free: 9.305 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0197/0.1441, allocations: 3.947 MB / 495.6 MB, free: 5.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.653, allocations: 18.17 kB / 495.6 MB, free: 5.414 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test7_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test7.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_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.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],time