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.001343/0.001343, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001566/0.001566, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2171/0.2171, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 79.88 kB / 480.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3495, allocations: 62.44 MB / 0.5306 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.002766/0.3524, allocations: 1.751 MB / 0.5323 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.3539, allocations: 1.022 MB / 0.5333 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.155e-05/0.354, allocations: 1.219 kB / 0.5333 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000291/0.3543, allocations: 96.11 kB / 0.5334 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002838/0.3546, allocations: 115.2 kB / 0.5335 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001918/0.3548, allocations: 71.09 kB / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.355, allocations: 118.4 kB / 0.5337 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.844e-05/0.3551, allocations: 23.02 kB / 0.5337 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.347e-05/0.3552, allocations: 59.45 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.404e-05/0.3553, allocations: 55.31 kB / 0.5338 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.3553, allocations: 4.125 kB / 0.5338 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.3554, allocations: 58.48 kB / 0.5339 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.266e-05/0.3555, allocations: 29.48 kB / 0.5339 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.859e-05/0.3555, allocations: 39.97 kB / 0.534 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002026/0.3557, allocations: 140.7 kB / 0.5341 GB, free: 10.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3557, allocations: 0 / 0.5341 GB, free: 10.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3558, allocations: 4 kB / 0.5341 GB, free: 10.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.3558, allocations: 1.375 kB / 0.5341 GB, free: 10.76 MB / 398.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.0004987/0.3563, allocations: 437.1 kB / 0.5345 GB, free: 10.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.3563, allocations: 13.56 kB / 0.5345 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.882e-05/0.3564, allocations: 36.06 kB / 0.5346 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.442e-05/0.3564, allocations: 10.34 kB / 0.5346 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.3567, allocations: 217.9 kB / 0.5348 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.3567, allocations: 5.734 kB / 0.5348 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.3567, allocations: 10.69 kB / 0.5348 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000143/0.3569, allocations: 64.72 kB / 0.5349 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3569, allocations: 0 / 0.5349 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.3569, allocations: 5.375 kB / 0.5349 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.3569, allocations: 0 / 0.5349 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.644e-05/0.357, allocations: 21.73 kB / 0.5349 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003531/0.3574, allocations: 300.3 kB / 0.5352 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/0.3576, allocations: 68.61 kB / 0.5352 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.377e-05/0.3577, allocations: 26.58 kB / 0.5353 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.3577, allocations: 1.375 kB / 0.5353 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001419/0.3578, allocations: 70.42 kB / 0.5353 GB, free: 9.504 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.3578, allocations: 0 / 0.5353 GB, free: 9.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007128/0.3586, allocations: 242.5 kB / 0.5356 GB, free: 9.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/0.3586, allocations: 57.94 kB / 0.5356 GB, free: 9.305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002098/0.3588, allocations: 220.8 kB / 0.5358 GB, free: 9.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.3589, allocations: 30.73 kB / 0.5359 GB, free: 9.109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.68e-05/0.3589, allocations: 110.8 kB / 0.536 GB, free: 9.004 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.635e-05/0.359, allocations: 37.25 kB / 0.536 GB, free: 8.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.359, allocations: 25.58 kB / 0.536 GB, free: 8.949 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3591, allocations: 331.2 kB / 0.5363 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.522e-05/0.3592, allocations: 26.92 kB / 0.5364 GB, free: 8.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.514e-05/0.3593, allocations: 44.02 kB / 0.5364 GB, free: 8.578 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.3594, allocations: 77.05 kB / 0.5365 GB, free: 8.531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3594, allocations: 4 kB / 0.5365 GB, free: 8.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000209/0.3597, allocations: 130 kB / 0.5366 GB, free: 8.449 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.3597, allocations: 9.562 kB / 0.5366 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3597, allocations: 1.219 kB / 0.5366 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.3597, allocations: 5.125 kB / 0.5366 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.158e-05/0.3598, allocations: 28.92 kB / 0.5366 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.3598, allocations: 1.094 kB / 0.5366 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.465e-05/0.3599, allocations: 2.188 kB / 0.5367 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.3599, allocations: 7.062 kB / 0.5367 GB, free: 8.426 MB / 398.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.0001039/0.36, allocations: 131.7 kB / 0.5368 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.609e-05/0.36, allocations: 14.47 kB / 0.5368 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.82e-05/0.3601, allocations: 19.97 kB / 0.5368 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3601, allocations: 9.234 kB / 0.5368 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3601, allocations: 1.594 kB / 0.5368 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3601, allocations: 0 / 0.5368 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004922/0.3606, allocations: 456.8 kB / 0.5373 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3606, allocations: 1.094 kB / 0.5373 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.316e-05/0.3606, allocations: 11.81 kB / 0.5373 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3607, allocations: 5.406 kB / 0.5373 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.3607, allocations: 2.656 kB / 0.5373 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3607, allocations: 1.25 kB / 0.5373 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3607, allocations: 5 kB / 0.5373 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002584/0.361, allocations: 242.5 kB / 0.5375 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.099e-05/0.361, allocations: 84.48 kB / 0.5376 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.361, allocations: 6.906 kB / 0.5376 GB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.379e-05/0.3611, allocations: 6.922 kB / 0.5376 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.1e-05/0.3611, allocations: 7.812 kB / 0.5376 GB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.3612, allocations: 8.922 kB / 0.5376 GB, free: 7.516 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001296/0.3613, allocations: 163.7 kB / 0.5378 GB, free: 7.406 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.723e-06/0.3613, allocations: 0 / 0.5378 GB, free: 7.406 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002677/0.3616, allocations: 33.16 kB / 0.5378 GB, free: 7.395 MB / 398.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.001495/0.3631, allocations: 1.178 MB / 0.539 GB, free: 6.496 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002077/0.3633, allocations: 81.44 kB / 0.539 GB, free: 6.461 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3633, allocations: 64 / 0.539 GB, free: 6.461 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.322e-05/0.3634, allocations: 43.36 kB / 0.5391 GB, free: 6.441 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.3638, allocations: 37.14 kB / 0.5391 GB, free: 6.422 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.3655, allocations: 1.81 MB / 0.5409 GB, free: 4.891 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.3659, allocations: 0.712 MB / 0.5416 GB, free: 4.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.794e-05/0.3659, allocations: 20.31 kB / 0.5416 GB, free: 4.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.058e-05/0.366, allocations: 44.02 kB / 0.5416 GB, free: 4.137 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.366, allocations: 1.281 kB / 0.5416 GB, free: 4.137 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/0.3863, allocations: 3.922 MB / 0.5455 GB, free: 2.035 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/8.039, allocations: 5.922 kB / 0.5455 GB, free: 2.031 MB / 398.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),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