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.001624/0.001625, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002124/0.002124, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.3 MB, free: 9.059 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2199/0.2199, allocations: 46.1 MB / 343.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002313/0.002313, allocations: 78.7 kB / 416.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1495, allocations: 62.44 MB / 479.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.004034/0.1536, allocations: 2.097 MB / 481.5 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00216/0.1558, allocations: 1.103 MB / 482.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.156, allocations: 3.938 kB / 482.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003928/0.1564, allocations: 43.77 kB / 482.6 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004022/0.1569, allocations: 87.61 kB / 482.7 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003702/0.1573, allocations: 103.8 kB / 482.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000326/0.1576, allocations: 183.5 kB / 483 MB, free: 2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.1578, allocations: 33.66 kB / 483 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.158, allocations: 75.58 kB / 483.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.1581, allocations: 75.59 kB / 483.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.736e-05/0.1581, allocations: 12 kB / 483.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.1583, allocations: 43.98 kB / 483.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.635e-05/0.1584, allocations: 35.78 kB / 483.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.1585, allocations: 71.59 kB / 483.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.1588, allocations: 187.6 kB / 483.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1588, allocations: 0 / 483.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1588, allocations: 0 / 483.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1588, allocations: 0 / 483.5 MB, free: 1.477 MB / 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.001084/0.1599, allocations: 0.5682 MB / 484.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.16, allocations: 12.88 kB / 484.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5e-05/0.16, allocations: 34.75 kB / 484.1 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.762e-05/0.1601, allocations: 20.75 kB / 484.2 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.1605, allocations: 248.8 kB / 484.4 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.1605, allocations: 4.375 kB / 484.4 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.1606, allocations: 15.94 kB / 484.4 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004377/0.161, allocations: 152.1 kB / 484.6 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.161, allocations: 0 / 484.6 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.1611, allocations: 4 kB / 484.6 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.1611, allocations: 3.984 kB / 484.6 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004599/0.1616, allocations: 119.8 kB / 484.7 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000747/0.1623, allocations: 0.5399 MB / 485.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006714/0.163, allocations: 162.5 kB / 485.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.1633, allocations: 76.78 kB / 485.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.1633, allocations: 8 kB / 485.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004602/0.1638, allocations: 135.2 kB / 485.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.1638, allocations: 0 / 485.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009302/0.1647, allocations: 265.1 kB / 485.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.1648, allocations: 55.41 kB / 485.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002545/0.1651, allocations: 229.6 kB / 486.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.1651, allocations: 29.64 kB / 486.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.1652, allocations: 128.3 kB / 486.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.1653, allocations: 39.59 kB / 486.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.927e-05/0.1653, allocations: 41.7 kB / 486.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1655, allocations: 330.8 kB / 486.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.1658, allocations: 63.94 kB / 486.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002643/0.166, allocations: 112.2 kB / 486.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004956/0.1665, allocations: 189.8 kB / 487.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1665, allocations: 3.984 kB / 487.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006521/0.1672, allocations: 246.2 kB / 487.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.1673, allocations: 36.34 kB / 487.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.1673, allocations: 4 kB / 487.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.1673, allocations: 8.062 kB / 487.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001933/0.1675, allocations: 43.91 kB / 487.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.1675, allocations: 4 kB / 487.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.1677, allocations: 27.81 kB / 487.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.1678, allocations: 12 kB / 487.4 MB, free: 13.24 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 0.0001307/0.1679, allocations: 129.8 kB / 487.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.21e-05/0.1679, allocations: 23.7 kB / 487.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6e-05/0.168, allocations: 21.41 kB / 487.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.168, allocations: 7.938 kB / 487.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.168, allocations: 0 / 487.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.168, allocations: 3.984 kB / 487.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.1683, allocations: 229.5 kB / 487.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1683, allocations: 0 / 487.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001612/0.1684, allocations: 27.97 kB / 487.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1685, allocations: 3.938 kB / 487.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.1685, allocations: 3.984 kB / 487.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.1685, allocations: 11.94 kB / 487.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1685, allocations: 0 / 487.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008536/0.1694, allocations: 305.1 kB / 488.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.932e-05/0.1694, allocations: 96.86 kB / 488.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.1695, allocations: 4 kB / 488.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.1696, allocations: 23.91 kB / 488.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.608e-05/0.1697, allocations: 15.97 kB / 488.3 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.1698, allocations: 4 kB / 488.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000234/0.17, allocations: 176.5 kB / 488.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.663e-06/0.17, allocations: 0 / 488.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002734/0.1703, allocations: 39.94 kB / 488.5 MB, free: 12.04 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.002004/0.1723, allocations: 1.137 MB / 489.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006161/0.1729, allocations: 215.2 kB / 489.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.1729, allocations: 4 kB / 489.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000346/0.1733, allocations: 84.06 kB / 490 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.1737, allocations: 47.77 kB / 490 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003713/0.1774, allocations: 2.202 MB / 492.2 MB, free: 8.355 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.1778, allocations: 0.7243 MB / 492.9 MB, free: 7.605 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.1779, allocations: 25.53 kB / 493 MB, free: 7.582 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.178, allocations: 59.41 kB / 493 MB, free: 7.523 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.178, allocations: 0 / 493 MB, free: 7.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01653/0.1945, allocations: 4.557 MB / 497.6 MB, free: 3.07 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.1948, allocations: 232 kB / 497.8 MB, free: 2.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.051/2.246, allocations: 0 / 497.8 MB, free: 2.82 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