Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test71.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.Test71,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test71",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test71,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test71",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001548/0.001548, allocations: 114.9 kB / 17.78 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.001751/0.001751, allocations: 205.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2179/0.2179, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 79.88 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3803, allocations: 62.44 MB / 0.5306 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test71): time 0.002948/0.3833, allocations: 1.834 MB / 0.5324 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001743/0.385, allocations: 1.085 MB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.23e-05/0.3851, allocations: 1.375 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004936/0.3856, allocations: 309.8 kB / 0.5337 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004668/0.3861, allocations: 254.6 kB / 0.534 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002423/0.3864, allocations: 104.4 kB / 0.5341 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002944/0.3867, allocations: 268.2 kB / 0.5343 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.685e-05/0.3868, allocations: 17.92 kB / 0.5343 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.3869, allocations: 133.5 kB / 0.5345 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.3872, allocations: 192.1 kB / 0.5347 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.3872, allocations: 10.62 kB / 0.5347 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.3873, allocations: 50.31 kB / 0.5347 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.3875, allocations: 142.8 kB / 0.5349 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.3876, allocations: 159.3 kB / 0.535 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004352/0.3881, allocations: 364.5 kB / 0.5354 GB, free: 10 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3881, allocations: 0 / 0.5354 GB, free: 10 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3881, allocations: 0 / 0.5354 GB, free: 10 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.3881, allocations: 5.25 kB / 0.5354 GB, free: 9.996 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.001008/0.3891, allocations: 0.7662 MB / 0.5361 GB, free: 9.309 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3892, allocations: 9 kB / 0.5361 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.946e-05/0.3892, allocations: 33.19 kB / 0.5361 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.302e-05/0.3893, allocations: 54.67 kB / 0.5362 GB, free: 9.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006359/0.39, allocations: 459.8 kB / 0.5366 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.39, allocations: 2.531 kB / 0.5366 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.39, allocations: 7.406 kB / 0.5366 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.3902, allocations: 87.17 kB / 0.5367 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.3902, allocations: 1.062 kB / 0.5367 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.3903, allocations: 0 / 0.5367 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.3903, allocations: 1.094 kB / 0.5367 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.3904, allocations: 36.12 kB / 0.5368 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004282/0.3908, allocations: 377.9 kB / 0.5371 GB, free: 8.449 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002724/0.3911, allocations: 118.5 kB / 0.5372 GB, free: 8.355 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.025e-05/0.3912, allocations: 41.94 kB / 0.5373 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.3912, allocations: 1.188 kB / 0.5373 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000222/0.3915, allocations: 119.6 kB / 0.5374 GB, free: 8.215 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.3915, allocations: 3.938 kB / 0.5374 GB, free: 8.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004865/0.392, allocations: 193.8 kB / 0.5376 GB, free: 8.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.3921, allocations: 86.22 kB / 0.5377 GB, free: 8.004 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.3932, allocations: 1.053 MB / 0.5387 GB, free: 7.523 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.3933, allocations: 26.86 kB / 0.5387 GB, free: 7.492 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.3934, allocations: 239.6 kB / 0.5389 GB, free: 7.285 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.132e-05/0.3935, allocations: 32.14 kB / 0.539 GB, free: 7.258 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/0.3936, allocations: 25.97 kB / 0.539 GB, free: 7.234 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.3938, allocations: 370.6 kB / 0.5394 GB, free: 6.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.913e-05/0.3939, allocations: 34.39 kB / 0.5394 GB, free: 6.863 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.394, allocations: 56.11 kB / 0.5394 GB, free: 6.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001808/0.3942, allocations: 97.84 kB / 0.5395 GB, free: 6.742 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3942, allocations: 3.938 kB / 0.5395 GB, free: 6.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000308/0.3945, allocations: 167.9 kB / 0.5397 GB, free: 6.641 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3945, allocations: 9.781 kB / 0.5397 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3945, allocations: 1.219 kB / 0.5397 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3946, allocations: 1.188 kB / 0.5397 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.3947, allocations: 29.42 kB / 0.5397 GB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.3947, allocations: 1.469 kB / 0.5397 GB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.3948, allocations: 13.7 kB / 0.5398 GB, free: 6.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.3948, allocations: 2.625 kB / 0.5398 GB, free: 6.617 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.startTime.nextTimeEvent,$whenCondition2,startTime.nextTimeEventScaled,$PRE.startTime.nextTimeEventScaled,startTime.nextTimeEvent,$PRE.startTime_0.nextTimeEvent,$whenCondition1,startTime_0.nextTimeEventScaled,$PRE.startTime_0.nextTimeEventScaled,startTime_0.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.0002583/0.3951, allocations: 221.5 kB / 0.54 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.042e-05/0.3952, allocations: 63.27 kB / 0.54 GB, free: 6.422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.999e-05/0.3953, allocations: 59.42 kB / 0.5401 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.3953, allocations: 1.062 kB / 0.5401 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.3953, allocations: 1.156 kB / 0.5401 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3953, allocations: 4.969 kB / 0.5401 GB, free: 6.387 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003778/0.3957, allocations: 345.8 kB / 0.5404 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3957, allocations: 1.094 kB / 0.5404 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.896e-05/0.3958, allocations: 6.5 kB / 0.5404 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.3958, allocations: 1.125 kB / 0.5404 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.3958, allocations: 6.266 kB / 0.5404 GB, free: 6.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-06/0.3958, allocations: 5.031 kB / 0.5404 GB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3958, allocations: 4 kB / 0.5404 GB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004244/0.3962, allocations: 205.7 kB / 0.5406 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001806/0.3964, allocations: 146.5 kB / 0.5408 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.258e-05/0.3965, allocations: 2.438 kB / 0.5408 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.841e-05/0.3966, allocations: 7.266 kB / 0.5408 GB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/0.3966, allocations: 16.33 kB / 0.5408 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.3967, allocations: 3.594 kB / 0.5408 GB, free: 5.773 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009451/0.3976, allocations: 0.7816 MB / 0.5416 GB, free: 5.414 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3976, allocations: 0 / 0.5416 GB, free: 5.414 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.3979, allocations: 44.94 kB / 0.5416 GB, free: 5.406 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,startTime.nextTimeEvent,startTime.nextTimeEventScaled,$whenCondition1,startTime_0.nextTimeEvent,startTime_0.nextTimeEventScaled) * Number of discrete states: 4 (startTime_0.nextTimeEventScaled,startTime_0.nextTimeEvent,startTime.nextTimeEventScaled,startTime.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001536/0.3995, allocations: 1.057 MB / 0.5426 GB, free: 4.594 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002573/0.3997, allocations: 80 kB / 0.5427 GB, free: 4.562 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3998, allocations: 0 / 0.5427 GB, free: 4.562 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001154/0.3999, allocations: 42.84 kB / 0.5428 GB, free: 4.543 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.4003, allocations: 68.81 kB / 0.5428 GB, free: 4.508 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00564/0.406, allocations: 4.569 MB / 0.5473 GB, free: 272 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.4064, allocations: 0.8466 MB / 0.5481 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001375/0.4066, allocations: 62.94 kB / 0.5482 GB, free: 15.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.4068, allocations: 151.4 kB / 0.5483 GB, free: 15.19 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4068, allocations: 0 / 0.5483 GB, free: 15.19 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.4356, allocations: 9.092 MB / 0.5572 GB, free: 6.191 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.207/8.643, allocations: 14.12 kB / 0.5572 GB, free: 6.18 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test71.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test71.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test71.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test71.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test71_res.csv --start-time 0 --stop-time 8000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.2 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test71.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test71.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test71_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test71/Test71.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test71.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[5078]=8000.000000 File[567]=2048.000000 " Variables in the reference:time,startTime_0.y[1],startTime.y[1] Variables in the result:time,startTime.y[1],startTime_0.y[1],startTime.offset[1],startTime.shiftTime,startTime.startTime