Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.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.Test14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001012/0.001011, allocations: 93.78 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.7 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1926/0.1926, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002214/0.0002215, allocations: 12 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09614/0.09638, allocations: 63.55 MB / 483.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.002075/0.09849, allocations: 1.744 MB / 484.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.1, allocations: 1.082 MB / 486 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.059e-05/0.1001, allocations: 0 / 486 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.1003, allocations: 43.77 kB / 486.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001885/0.1005, allocations: 87.55 kB / 486.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001789/0.1006, allocations: 99.83 kB / 486.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001775/0.1008, allocations: 183.4 kB / 486.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.751e-05/0.1009, allocations: 33.67 kB / 486.4 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.625e-05/0.101, allocations: 71.62 kB / 486.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.226e-05/0.1011, allocations: 71.56 kB / 486.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.1011, allocations: 8 kB / 486.6 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.712e-05/0.1012, allocations: 43.97 kB / 486.6 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.502e-05/0.1013, allocations: 27.91 kB / 486.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.748e-05/0.1014, allocations: 93.23 kB / 486.8 MB, free: 476 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002042/0.1016, allocations: 195.6 kB / 486.9 MB, free: 280 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1016, allocations: 0 / 486.9 MB, free: 280 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.71e-07/0.1016, allocations: 3.938 kB / 486.9 MB, free: 276 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.196e-06/0.1016, allocations: 4 kB / 487 MB, free: 272 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007197/0.1023, allocations: 0.5411 MB / 487.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.946e-05/0.1024, allocations: 12.88 kB / 487.5 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.016e-05/0.1024, allocations: 38.69 kB / 487.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.795e-05/0.1024, allocations: 20.75 kB / 487.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.1027, allocations: 256.8 kB / 487.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.1027, allocations: 12.38 kB / 487.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.286e-05/0.1027, allocations: 11.94 kB / 487.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003642/0.1031, allocations: 160.2 kB / 488 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.661e-06/0.1031, allocations: 3.984 kB / 488 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.1031, allocations: 4 kB / 488 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.1031, allocations: 8 kB / 488 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004555/0.1036, allocations: 131.8 kB / 488.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004972/0.1041, allocations: 0.5592 MB / 488.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006073/0.1047, allocations: 182.6 kB / 488.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002547/0.105, allocations: 84.8 kB / 489 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.105, allocations: 0 / 489 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003652/0.1054, allocations: 159.2 kB / 489.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.343e-06/0.1054, allocations: 0 / 489.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008489/0.1063, allocations: 289.2 kB / 489.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.1063, allocations: 51.41 kB / 489.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/0.1065, allocations: 233.6 kB / 489.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.1065, allocations: 33.7 kB / 489.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.054e-05/0.1066, allocations: 128.2 kB / 489.8 MB, free: 13.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.156e-05/0.1066, allocations: 35.69 kB / 489.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-05/0.1067, allocations: 21.72 kB / 489.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.243e-05/0.1068, allocations: 334.8 kB / 490.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002657/0.1071, allocations: 83.94 kB / 490.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/0.1073, allocations: 114.9 kB / 490.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005125/0.1079, allocations: 217.3 kB / 490.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1079, allocations: 4 kB / 490.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006386/0.1085, allocations: 278.9 kB / 490.9 MB, free: 12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.1086, allocations: 33.7 kB / 490.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-06/0.1086, allocations: 0 / 490.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.1086, allocations: 7.938 kB / 490.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001779/0.1088, allocations: 43.95 kB / 491 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.1088, allocations: 8.062 kB / 491 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/0.109, allocations: 31.91 kB / 491 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/0.109, allocations: 8 kB / 491 MB, free: 11.87 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.t_new.nextTimeEvent,$whenCondition2,t_new.nextTimeEventScaled,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEvent,trapezoid1.count,$PRE.trapezoid1.count,trapezoid1.T_start,$PRE.trapezoid1.T_start,$whenCondition1,err1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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.547e-05/0.1091, allocations: 129.8 kB / 491.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.1091, allocations: 19.72 kB / 491.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.421e-05/0.1092, allocations: 29.39 kB / 491.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1092, allocations: 3.938 kB / 491.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.1092, allocations: 3.938 kB / 491.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1092, allocations: 4 kB / 491.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.1094, allocations: 237.5 kB / 491.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1094, allocations: 0 / 491.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.1095, allocations: 31.97 kB / 491.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.1096, allocations: 0 / 491.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.1096, allocations: 7.938 kB / 491.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.1096, allocations: 11.92 kB / 491.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1096, allocations: 3.938 kB / 491.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008516/0.1104, allocations: 341.1 kB / 491.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.965e-05/0.1105, allocations: 96.94 kB / 491.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.1105, allocations: 4 kB / 491.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.1107, allocations: 31.91 kB / 492 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.624e-05/0.1108, allocations: 19.97 kB / 492 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.1108, allocations: 8.062 kB / 492 MB, free: 10.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000133/0.1109, allocations: 172.5 kB / 492.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1109, allocations: 0 / 492.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00023/0.1112, allocations: 36 kB / 492.2 MB, free: 10.61 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 3 (trapezoid1.count,t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * 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.00175/0.1129, allocations: 1.176 MB / 493.4 MB, free: 9.539 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005811/0.1135, allocations: 239.2 kB / 493.6 MB, free: 9.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1135, allocations: 256 / 493.6 MB, free: 9.293 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.1138, allocations: 91.88 kB / 493.7 MB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.1141, allocations: 52.72 kB / 493.7 MB, free: 9.152 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.1169, allocations: 2.272 MB / 496 MB, free: 6.773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.1172, allocations: 0.7321 MB / 496.8 MB, free: 6.016 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.168e-05/0.1172, allocations: 29.52 kB / 496.8 MB, free: 5.988 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.313e-05/0.1173, allocations: 47.42 kB / 496.8 MB, free: 5.941 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1173, allocations: 0 / 496.8 MB, free: 5.941 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6698/0.7872, allocations: 4.356 MB / 0.4894 GB, free: 1.711 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.7874, allocations: 237.3 kB / 0.4897 GB, free: 1.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.974/2.761, allocations: 0 / 0.4897 GB, free: 1.453 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test14/Test14.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[5004]=2.000000 File[503]=0.501000 Error: Could not read variable trapezoid1.T_start in file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat. Warning: Get data of variable trapezoid1.T_start from file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat failed! Error: Could not read variable trapezoid1.count in file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat. Warning: Get data of variable trapezoid1.count from file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat failed! " Variables in the reference:time,err1.y,trapezoid1.T_start,trapezoid1.count Variables in the result:der(err1.y),err1.initType,err1.k,err1.u,err1.use_reset,err1.use_set,err1.y,err1.y_start,feedback1.u1,feedback1.u2,feedback1.y,product1.u1,product1.u2,product1.y,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.timeEvents,t_new.timeScale,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],threshold,time,trapezoid1.amplitude,trapezoid1.falling,trapezoid1.nperiod,trapezoid1.offset,trapezoid1.period,trapezoid1.rising,trapezoid1.startTime,trapezoid1.width,trapezoid1.y