Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.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.Test8,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test8",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test8,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test8",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00112/0.00112, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2196/0.2196, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 79.81 kB / 480.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3161, allocations: 62.43 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test8): time 0.003763/0.3199, allocations: 1.749 MB / 0.5323 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001697/0.3217, allocations: 1.024 MB / 0.5333 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.637e-05/0.3217, allocations: 5.188 kB / 0.5333 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003721/0.3221, allocations: 109.9 kB / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003752/0.3225, allocations: 125.2 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002152/0.3228, allocations: 80.09 kB / 0.5336 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.323, allocations: 128.1 kB / 0.5337 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.3231, allocations: 24.66 kB / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.3232, allocations: 56.55 kB / 0.5338 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.3234, allocations: 68.94 kB / 0.5339 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.3234, allocations: 5.375 kB / 0.5339 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001296/0.3235, allocations: 63.56 kB / 0.534 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.852e-05/0.3236, allocations: 33.84 kB / 0.534 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.868e-05/0.3237, allocations: 42.28 kB / 0.534 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.324, allocations: 162.8 kB / 0.5342 GB, free: 10.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.324, allocations: 0 / 0.5342 GB, free: 10.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.324, allocations: 0 / 0.5342 GB, free: 10.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.324, allocations: 3.938 kB / 0.5342 GB, free: 10.69 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006201/0.3246, allocations: 458.5 kB / 0.5346 GB, free: 10.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3247, allocations: 9.625 kB / 0.5346 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.082e-05/0.3247, allocations: 40.09 kB / 0.5347 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.15e-05/0.3248, allocations: 15.62 kB / 0.5347 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.3251, allocations: 226.9 kB / 0.5349 GB, free: 9.938 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.3251, allocations: 5.75 kB / 0.5349 GB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/0.3251, allocations: 6.688 kB / 0.5349 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001593/0.3253, allocations: 71.47 kB / 0.535 GB, free: 9.871 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3253, allocations: 4 kB / 0.535 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.3253, allocations: 1.375 kB / 0.535 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3253, allocations: 1.375 kB / 0.535 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.825e-05/0.3254, allocations: 32.47 kB / 0.535 GB, free: 9.852 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003887/0.3258, allocations: 319 kB / 0.5353 GB, free: 9.523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002465/0.3261, allocations: 72.92 kB / 0.5354 GB, free: 9.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.169e-05/0.3261, allocations: 29.22 kB / 0.5354 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.3262, allocations: 1.375 kB / 0.5354 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.3263, allocations: 85.42 kB / 0.5355 GB, free: 9.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.343e-06/0.3263, allocations: 0 / 0.5355 GB, free: 9.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007743/0.3271, allocations: 272.9 kB / 0.5358 GB, free: 9.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.3272, allocations: 60.94 kB / 0.5358 GB, free: 9.164 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.3274, allocations: 258.4 kB / 0.5361 GB, free: 8.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.3275, allocations: 30.86 kB / 0.5361 GB, free: 8.957 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.86e-05/0.3275, allocations: 110.7 kB / 0.5362 GB, free: 8.852 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.226e-05/0.3276, allocations: 42.17 kB / 0.5362 GB, free: 8.816 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.419e-05/0.3276, allocations: 22.78 kB / 0.5363 GB, free: 8.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3278, allocations: 332.5 kB / 0.5366 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.066e-05/0.3279, allocations: 32.95 kB / 0.5366 GB, free: 8.453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.647e-05/0.328, allocations: 50.11 kB / 0.5367 GB, free: 8.418 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.3281, allocations: 93.75 kB / 0.5367 GB, free: 8.359 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.3281, allocations: 0 / 0.5367 GB, free: 8.359 MB / 398.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002506/0.3284, allocations: 147.1 kB / 0.5369 GB, free: 8.273 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.3284, allocations: 4.719 kB / 0.5369 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.3284, allocations: 1.125 kB / 0.5369 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.3285, allocations: 5.062 kB / 0.5369 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.2e-05/0.3285, allocations: 30.33 kB / 0.5369 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.381e-06/0.3286, allocations: 2.094 kB / 0.5369 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.811e-05/0.3286, allocations: 6.344 kB / 0.5369 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.779e-06/0.3286, allocations: 3.188 kB / 0.5369 GB, free: 8.254 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 (14): * Single equations (assignments): 14 * 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.0001157/0.3287, allocations: 134 kB / 0.5371 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.881e-05/0.3288, allocations: 15.03 kB / 0.5371 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.015e-05/0.3288, allocations: 26.05 kB / 0.5371 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3289, allocations: 5.094 kB / 0.5371 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3289, allocations: 4 kB / 0.5371 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.3289, allocations: 1.125 kB / 0.5371 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005332/0.3294, allocations: 478.9 kB / 0.5376 GB, free: 7.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3294, allocations: 0.7812 kB / 0.5376 GB, free: 7.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.398e-05/0.3295, allocations: 25.11 kB / 0.5376 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.3295, allocations: 1 kB / 0.5376 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.3295, allocations: 3.219 kB / 0.5376 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3295, allocations: 5.125 kB / 0.5376 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3295, allocations: 1.094 kB / 0.5376 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002716/0.3298, allocations: 246.5 kB / 0.5378 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.206e-05/0.3299, allocations: 89.95 kB / 0.5379 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.175e-05/0.3299, allocations: 9.484 kB / 0.5379 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.546e-05/0.33, allocations: 10.56 kB / 0.5379 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.21e-05/0.33, allocations: 13.25 kB / 0.538 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.33, allocations: 12.22 kB / 0.538 GB, free: 7.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001504/0.3302, allocations: 192.8 kB / 0.5382 GB, free: 7.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3302, allocations: 0 / 0.5382 GB, free: 7.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002803/0.3305, allocations: 34.36 kB / 0.5382 GB, free: 7.18 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 (12): * Single equations (assignments): 10 * 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.001537/0.332, allocations: 1.182 MB / 0.5393 GB, free: 6.285 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002137/0.3323, allocations: 88 kB / 0.5394 GB, free: 6.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3323, allocations: 3.938 kB / 0.5394 GB, free: 6.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.107e-05/0.3324, allocations: 46.98 kB / 0.5395 GB, free: 6.227 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.3327, allocations: 52.41 kB / 0.5395 GB, free: 6.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.3347, allocations: 1.942 MB / 0.5414 GB, free: 4.609 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.335, allocations: 0.7289 MB / 0.5421 GB, free: 3.887 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.085e-05/0.3351, allocations: 18.05 kB / 0.5422 GB, free: 3.883 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.746e-05/0.3352, allocations: 58.84 kB / 0.5422 GB, free: 3.836 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3352, allocations: 0 / 0.5422 GB, free: 3.836 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01828/0.3535, allocations: 4.228 MB / 0.5463 GB, free: 1.398 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/7.998, allocations: 8.938 kB / 0.5463 GB, free: 1.391 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test8_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test8.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test8/Test8.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.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,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.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