Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001256, allocations: 113.4 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002079/0.002079, allocations: 188.1 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2141/0.2141, allocations: 44.18 MB / 336.8 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 67.89 kB / 470.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3695, allocations: 60.81 MB / 0.5185 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.003672/0.3732, allocations: 1.73 MB / 0.5202 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001697/0.3749, allocations: 0.8805 MB / 0.5211 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.3751, allocations: 1.125 kB / 0.5211 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003803/0.3755, allocations: 85.73 kB / 0.5211 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003207/0.3758, allocations: 74.14 kB / 0.5212 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004258/0.3763, allocations: 114.1 kB / 0.5213 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002573/0.3766, allocations: 109.3 kB / 0.5214 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.3767, allocations: 21 kB / 0.5215 GB, free: 1.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.3768, allocations: 58.89 kB / 0.5215 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.377, allocations: 58.34 kB / 0.5216 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.473e-05/0.377, allocations: 3.438 kB / 0.5216 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.3772, allocations: 59.72 kB / 0.5216 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.661e-05/0.3773, allocations: 19.58 kB / 0.5216 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.161e-05/0.3773, allocations: 38.59 kB / 0.5217 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002973/0.3776, allocations: 137.7 kB / 0.5218 GB, free: 1.176 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3777, allocations: 3.938 kB / 0.5218 GB, free: 1.172 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3777, allocations: 0 / 0.5218 GB, free: 1.172 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.3777, allocations: 0 / 0.5218 GB, free: 1.172 MB / 382.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.0005977/0.3783, allocations: 434.1 kB / 0.5222 GB, free: 0.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.3783, allocations: 9.219 kB / 0.5222 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.177e-05/0.3784, allocations: 32.83 kB / 0.5223 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.254e-05/0.3784, allocations: 10.78 kB / 0.5223 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.3787, allocations: 216.9 kB / 0.5225 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.3788, allocations: 6 kB / 0.5225 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.3788, allocations: 6.953 kB / 0.5225 GB, free: 488 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.3789, allocations: 61.95 kB / 0.5226 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.379, allocations: 0.9375 kB / 0.5226 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.379, allocations: 0 / 0.5226 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.379, allocations: 1.312 kB / 0.5226 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.945e-05/0.3791, allocations: 29.66 kB / 0.5226 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003544/0.3795, allocations: 295.3 kB / 0.5229 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002325/0.3797, allocations: 63.92 kB / 0.5229 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.772e-05/0.3798, allocations: 26.12 kB / 0.523 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.3798, allocations: 1.922 kB / 0.523 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001468/0.38, allocations: 70.66 kB / 0.523 GB, free: 20 kB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.38, allocations: 1.375 kB / 0.523 GB, free: 20 kB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008247/0.3808, allocations: 247.2 kB / 0.5233 GB, free: 15.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.3809, allocations: 56.98 kB / 0.5233 GB, free: 15.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.3811, allocations: 210.5 kB / 0.5235 GB, free: 15.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.3812, allocations: 31.62 kB / 0.5235 GB, free: 15.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.805e-05/0.3812, allocations: 109.1 kB / 0.5236 GB, free: 15.56 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.922e-05/0.3813, allocations: 32.28 kB / 0.5237 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.922e-05/0.3814, allocations: 28.14 kB / 0.5237 GB, free: 15.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3815, allocations: 326.6 kB / 0.524 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.021e-05/0.3816, allocations: 31.06 kB / 0.524 GB, free: 15.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.597e-05/0.3817, allocations: 44.8 kB / 0.5241 GB, free: 15.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.3818, allocations: 80.2 kB / 0.5242 GB, free: 15.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3818, allocations: 0 / 0.5242 GB, free: 15.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002491/0.3821, allocations: 132.1 kB / 0.5243 GB, free: 15.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.3821, allocations: 9.703 kB / 0.5243 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3821, allocations: 3.984 kB / 0.5243 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.3821, allocations: 2.125 kB / 0.5243 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.713e-05/0.3822, allocations: 26.88 kB / 0.5243 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.433e-06/0.3823, allocations: 1.547 kB / 0.5243 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.166e-05/0.3823, allocations: 6.891 kB / 0.5243 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.3823, allocations: 3.891 kB / 0.5243 GB, free: 15.03 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.0001078/0.3824, allocations: 129.5 kB / 0.5245 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.781e-05/0.3825, allocations: 21.62 kB / 0.5245 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.335e-05/0.3825, allocations: 19.06 kB / 0.5245 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3825, allocations: 5.375 kB / 0.5245 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3826, allocations: 0 / 0.5245 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3826, allocations: 0.5625 kB / 0.5245 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000531/0.3831, allocations: 456 kB / 0.5249 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.3831, allocations: 0 / 0.5249 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.75e-05/0.3832, allocations: 19.05 kB / 0.525 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.3832, allocations: 0 / 0.525 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.3832, allocations: 4.766 kB / 0.525 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3832, allocations: 0.75 kB / 0.525 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.3832, allocations: 5.719 kB / 0.525 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002763/0.3835, allocations: 236.1 kB / 0.5252 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.493e-05/0.3835, allocations: 84.41 kB / 0.5253 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.75e-05/0.3836, allocations: 7 kB / 0.5253 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.542e-05/0.3837, allocations: 3.859 kB / 0.5253 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.977e-05/0.3837, allocations: 15.28 kB / 0.5253 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.3837, allocations: 5.297 kB / 0.5253 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001438/0.3839, allocations: 156.5 kB / 0.5255 GB, free: 14.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3839, allocations: 0 / 0.5255 GB, free: 14.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002895/0.3842, allocations: 31.12 kB / 0.5255 GB, free: 14.08 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.001632/0.3858, allocations: 1.178 MB / 0.5266 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002235/0.3861, allocations: 86.27 kB / 0.5267 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3861, allocations: 0 / 0.5267 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.105e-05/0.3862, allocations: 42.83 kB / 0.5268 GB, free: 13.17 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000364/0.3865, allocations: 26.8 kB / 0.5268 GB, free: 13.17 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.3886, allocations: 1.8 MB / 0.5285 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.3889, allocations: 0.7115 MB / 0.5292 GB, free: 11.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.403e-05/0.389, allocations: 15.17 kB / 0.5293 GB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.114e-05/0.3891, allocations: 51.14 kB / 0.5293 GB, free: 11 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3891, allocations: 0 / 0.5293 GB, free: 11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02035/0.4095, allocations: 3.845 MB / 0.5331 GB, free: 9.211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.864/8.273, allocations: 11.5 kB / 0.5331 GB, free: 9.203 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test4_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Tables_CombiTimeTable_Test4.fmu > ModelicaTest_4.0.0_ModelicaTest.Tables.CombiTimeTable.Test4.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_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.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