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.001054/0.001059, allocations: 114.4 kB / 17.78 MB, free: 5.246 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.001181/0.001181, allocations: 187.8 kB / 18.71 MB, free: 4.324 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.324/1.324, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2048/0.2048, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 67.89 kB / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3622, allocations: 60.82 MB / 0.5185 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.002691/0.365, allocations: 1.726 MB / 0.5202 GB, free: 2.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.3661, allocations: 0.8726 MB / 0.5211 GB, free: 1.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.409e-05/0.3662, allocations: 1.156 kB / 0.5211 GB, free: 1.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003096/0.3666, allocations: 84.94 kB / 0.5211 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000215/0.3668, allocations: 84.44 kB / 0.5212 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.3671, allocations: 113.5 kB / 0.5213 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001605/0.3672, allocations: 117.7 kB / 0.5214 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.951e-05/0.3673, allocations: 12.11 kB / 0.5214 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.752e-05/0.3674, allocations: 52 kB / 0.5215 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.58e-05/0.3675, allocations: 61.09 kB / 0.5216 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.3675, allocations: 7.344 kB / 0.5216 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.3677, allocations: 58.98 kB / 0.5216 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.367e-05/0.3677, allocations: 25.48 kB / 0.5216 GB, free: 1.246 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.8e-05/0.3678, allocations: 33.98 kB / 0.5217 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.368, allocations: 133.5 kB / 0.5218 GB, free: 1.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.368, allocations: 0 / 0.5218 GB, free: 1.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.368, allocations: 3.938 kB / 0.5218 GB, free: 1.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.368, allocations: 0 / 0.5218 GB, free: 1.164 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.000441/0.3685, allocations: 433.8 kB / 0.5222 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.3685, allocations: 14.03 kB / 0.5222 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.343e-05/0.3685, allocations: 37.56 kB / 0.5223 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.626e-05/0.3686, allocations: 10.12 kB / 0.5223 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002242/0.3688, allocations: 207.9 kB / 0.5225 GB, free: 488 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.3688, allocations: 7.094 kB / 0.5225 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.3689, allocations: 6.156 kB / 0.5225 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001432/0.369, allocations: 61.53 kB / 0.5226 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.369, allocations: 1.469 kB / 0.5226 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.369, allocations: 0 / 0.5226 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3691, allocations: 5.125 kB / 0.5226 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.399e-05/0.3691, allocations: 29.53 kB / 0.5226 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003144/0.3695, allocations: 296.5 kB / 0.5229 GB, free: 124 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002176/0.3697, allocations: 63.45 kB / 0.5229 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.333e-05/0.3698, allocations: 22.06 kB / 0.5229 GB, free: 72 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.3698, allocations: 5.062 kB / 0.523 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/0.3699, allocations: 75.91 kB / 0.523 GB, free: 4 kB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.3699, allocations: 0 / 0.523 GB, free: 4 kB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.000724/0.3707, allocations: 240 kB / 0.5233 GB, free: 15.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.3707, allocations: 60.94 kB / 0.5233 GB, free: 15.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.3709, allocations: 210.9 kB / 0.5235 GB, free: 15.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.3709, allocations: 31.2 kB / 0.5235 GB, free: 15.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.479e-05/0.371, allocations: 104.6 kB / 0.5236 GB, free: 15.56 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.371, allocations: 36.06 kB / 0.5237 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.319e-05/0.3711, allocations: 25.02 kB / 0.5237 GB, free: 15.51 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.3712, allocations: 327.8 kB / 0.524 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.759e-05/0.3713, allocations: 25.56 kB / 0.524 GB, free: 15.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.789e-05/0.3713, allocations: 44.81 kB / 0.5241 GB, free: 15.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.3715, allocations: 83.42 kB / 0.5242 GB, free: 15.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3715, allocations: 0.7031 kB / 0.5242 GB, free: 15.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002093/0.3717, allocations: 129.1 kB / 0.5243 GB, free: 15.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.3717, allocations: 8.219 kB / 0.5243 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.3717, allocations: 1.062 kB / 0.5243 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.3718, allocations: 1.969 kB / 0.5243 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.055e-05/0.3718, allocations: 27.31 kB / 0.5243 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.3719, allocations: 2.594 kB / 0.5243 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.682e-05/0.3719, allocations: 10.8 kB / 0.5243 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.3719, allocations: 11.86 kB / 0.5243 GB, free: 15.01 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 9.58e-05/0.372, allocations: 123.8 kB / 0.5245 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.3721, allocations: 18.88 kB / 0.5245 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.892e-05/0.3721, allocations: 22.2 kB / 0.5245 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3721, allocations: 5.594 kB / 0.5245 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3721, allocations: 0 / 0.5245 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.3721, allocations: 0.75 kB / 0.5245 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005108/0.3727, allocations: 454.4 kB / 0.5249 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.3727, allocations: 2.312 kB / 0.5249 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.392e-05/0.3727, allocations: 13.67 kB / 0.525 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.3727, allocations: 1.5 kB / 0.525 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.3728, allocations: 6.766 kB / 0.525 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3728, allocations: 5.344 kB / 0.525 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.3728, allocations: 2.078 kB / 0.525 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002473/0.373, allocations: 235.8 kB / 0.5252 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.622e-05/0.3731, allocations: 85.98 kB / 0.5253 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.697e-05/0.3731, allocations: 7.016 kB / 0.5253 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.222e-05/0.3732, allocations: 3.453 kB / 0.5253 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.974e-05/0.3732, allocations: 5.609 kB / 0.5253 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.3732, allocations: 10.61 kB / 0.5253 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00013/0.3734, allocations: 164 kB / 0.5255 GB, free: 14.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3734, allocations: 0 / 0.5255 GB, free: 14.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002691/0.3737, allocations: 31.02 kB / 0.5255 GB, free: 14.07 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.001599/0.3753, allocations: 1.184 MB / 0.5266 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002087/0.3755, allocations: 77.81 kB / 0.5267 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3755, allocations: 0 / 0.5267 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.359e-05/0.3756, allocations: 40.14 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.0003455/0.3759, allocations: 33.64 kB / 0.5268 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.3777, allocations: 1.795 MB / 0.5285 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.378, allocations: 0.7124 MB / 0.5292 GB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.737e-05/0.3781, allocations: 23.11 kB / 0.5293 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.252e-05/0.3781, allocations: 41.84 kB / 0.5293 GB, free: 10.99 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3782, allocations: 3.938 kB / 0.5293 GB, free: 10.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.3982, allocations: 3.846 MB / 0.5331 GB, free: 9.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.455/7.853, allocations: 5.469 kB / 0.5331 GB, free: 9.176 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