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.00123/0.00123, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001431/0.001431, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2509/0.2509, allocations: 46.11 MB / 343.6 MB, free: 11.74 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 80.69 kB / 417 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1348, allocations: 62.43 MB / 479.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.003396/0.1382, allocations: 1.812 MB / 481.2 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.14, allocations: 1.021 MB / 482.2 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.216e-05/0.1401, allocations: 0 / 482.2 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004238/0.1405, allocations: 87.77 kB / 482.3 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003161/0.1409, allocations: 95.7 kB / 482.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002142/0.1411, allocations: 67.81 kB / 482.5 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.1413, allocations: 115.7 kB / 482.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.1415, allocations: 11.98 kB / 482.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.1416, allocations: 51.77 kB / 482.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.1417, allocations: 71.62 kB / 482.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.1417, allocations: 4 kB / 482.7 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.1419, allocations: 55.98 kB / 482.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.653e-05/0.142, allocations: 23.91 kB / 482.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.759e-05/0.142, allocations: 43.67 kB / 482.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.1423, allocations: 135.8 kB / 483 MB, free: 2.035 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1423, allocations: 0 / 483 MB, free: 2.035 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1423, allocations: 0 / 483 MB, free: 2.035 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.1423, allocations: 0 / 483 MB, free: 2.035 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.0007133/0.143, allocations: 426.9 kB / 483.4 MB, free: 1.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.895e-05/0.1431, allocations: 12.88 kB / 483.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.89e-05/0.1432, allocations: 34.73 kB / 483.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.318e-05/0.1432, allocations: 16.75 kB / 483.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003036/0.1435, allocations: 216.5 kB / 483.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.1436, allocations: 384 / 483.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.1436, allocations: 11.94 kB / 483.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.1438, allocations: 57.67 kB / 483.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.1438, allocations: 0 / 483.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.1438, allocations: 3.938 kB / 483.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1438, allocations: 4 kB / 483.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.44e-05/0.1439, allocations: 27.91 kB / 483.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005581/0.1445, allocations: 304.7 kB / 484.1 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.1448, allocations: 62.55 kB / 484.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.747e-05/0.1449, allocations: 20.98 kB / 484.1 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.1449, allocations: 4 kB / 484.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003134/0.1453, allocations: 75.31 kB / 484.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.1453, allocations: 0 / 484.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008728/0.1461, allocations: 237.5 kB / 484.5 MB, free: 380 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.1462, allocations: 55.34 kB / 484.5 MB, free: 312 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.1464, allocations: 223.5 kB / 484.7 MB, free: 76 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.1465, allocations: 29.7 kB / 484.8 MB, free: 40 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.702e-05/0.1466, allocations: 116.1 kB / 484.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.036e-05/0.1466, allocations: 35.53 kB / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.644e-05/0.1467, allocations: 29.72 kB / 484.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1468, allocations: 326.8 kB / 485.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.274e-05/0.1469, allocations: 32 kB / 485.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.097e-05/0.147, allocations: 45.69 kB / 485.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001351/0.1471, allocations: 85.59 kB / 485.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.1471, allocations: 0 / 485.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002124/0.1473, allocations: 125.4 kB / 485.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.1474, allocations: 8 kB / 485.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1474, allocations: 0 / 485.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.1474, allocations: 3.938 kB / 485.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.846e-05/0.1475, allocations: 23.92 kB / 485.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.1475, allocations: 8.031 kB / 485.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.769e-05/0.1476, allocations: 4 kB / 485.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.1476, allocations: 4 kB / 485.6 MB, free: 15.17 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.0001075/0.1477, allocations: 140.7 kB / 485.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.1477, allocations: 15.81 kB / 485.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.895e-05/0.1478, allocations: 17.39 kB / 485.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1478, allocations: 7.938 kB / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.706e-05/0.1478, allocations: 0 / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1478, allocations: 3.938 kB / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005283/0.1483, allocations: 459.9 kB / 486.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1484, allocations: 0 / 486.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.455e-05/0.1484, allocations: 12 kB / 486.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.1484, allocations: 0 / 486.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.1485, allocations: 15.97 kB / 486.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1485, allocations: 0 / 486.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1485, allocations: 0 / 486.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.1487, allocations: 233.1 kB / 486.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.279e-05/0.1488, allocations: 92.91 kB / 486.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.1488, allocations: 0 / 486.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.421e-05/0.1489, allocations: 8 kB / 486.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.149, allocations: 11.98 kB / 486.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.149, allocations: 4 kB / 486.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001343/0.1491, allocations: 165.2 kB / 486.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.617e-06/0.1491, allocations: 0 / 486.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.1494, allocations: 35.92 kB / 486.8 MB, free: 13.86 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.001838/0.1513, allocations: 1.171 MB / 487.9 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002221/0.1515, allocations: 79.91 kB / 488 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1515, allocations: 0 / 488 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.85e-05/0.1516, allocations: 43.92 kB / 488.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003691/0.152, allocations: 27.36 kB / 488.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.1541, allocations: 1.84 MB / 489.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.1545, allocations: 0.7157 MB / 490.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.794e-05/0.1546, allocations: 24.62 kB / 490.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.984e-05/0.1547, allocations: 43.42 kB / 490.7 MB, free: 9.965 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1547, allocations: 192 / 490.7 MB, free: 9.965 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0154/0.1701, allocations: 3.621 MB / 494.3 MB, free: 6.43 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002245/0.1704, allocations: 238.7 kB / 494.6 MB, free: 6.172 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.953/2.124, allocations: 0 / 494.6 MB, free: 6.172 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