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.001058/0.001058, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2358/0.2358, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 76.28 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1369, allocations: 62.45 MB / 480.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.005386/0.1423, allocations: 2.03 MB / 482.2 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002602/0.145, allocations: 1.107 MB / 483.3 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002877/0.1453, allocations: 7.938 kB / 483.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000407/0.1458, allocations: 51.64 kB / 483.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004857/0.1463, allocations: 115.4 kB / 483.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004003/0.1467, allocations: 111.6 kB / 483.6 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000329/0.1471, allocations: 199.5 kB / 483.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.1472, allocations: 29.66 kB / 483.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.1474, allocations: 87.62 kB / 483.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.1476, allocations: 75.56 kB / 483.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.618e-05/0.1476, allocations: 12 kB / 483.9 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.1478, allocations: 55.97 kB / 484 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.819e-05/0.1479, allocations: 35.84 kB / 484 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.82e-05/0.148, allocations: 71.59 kB / 484.1 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003407/0.1483, allocations: 195.6 kB / 484.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1483, allocations: 0 / 484.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.1483, allocations: 0 / 484.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.1484, allocations: 7.938 kB / 484.3 MB, free: 1.004 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.001085/0.1494, allocations: 0.5565 MB / 484.9 MB, free: 396 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.1495, allocations: 12.03 kB / 484.9 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.41e-05/0.1496, allocations: 42.73 kB / 484.9 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.27e-05/0.1496, allocations: 20.75 kB / 484.9 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000339/0.15, allocations: 248.8 kB / 485.2 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.15, allocations: 8.375 kB / 485.2 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.687e-05/0.1501, allocations: 23.91 kB / 485.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004567/0.1506, allocations: 146.6 kB / 485.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.1506, allocations: 0 / 485.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.1506, allocations: 0 / 485.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.1506, allocations: 7.938 kB / 485.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004873/0.1511, allocations: 115.8 kB / 485.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006871/0.1518, allocations: 0.5477 MB / 486 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007161/0.1526, allocations: 158.6 kB / 486.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002611/0.1528, allocations: 76.8 kB / 486.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.1529, allocations: 4 kB / 486.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004943/0.1534, allocations: 135.1 kB / 486.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 2.023e-06/0.1534, allocations: 4 kB / 486.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009361/0.1543, allocations: 261.1 kB / 486.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.1544, allocations: 59.39 kB / 486.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002781/0.1547, allocations: 225.6 kB / 486.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.1547, allocations: 33.69 kB / 487 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.986e-05/0.1548, allocations: 124.3 kB / 487.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.163e-05/0.1549, allocations: 39.59 kB / 487.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.752e-05/0.155, allocations: 37.7 kB / 487.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1551, allocations: 326.8 kB / 487.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000262/0.1554, allocations: 67.88 kB / 487.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002905/0.1557, allocations: 110.6 kB / 487.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005248/0.1562, allocations: 193.8 kB / 487.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1562, allocations: 0 / 487.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006776/0.1569, allocations: 262.8 kB / 488.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.642e-05/0.157, allocations: 29.7 kB / 488.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.157, allocations: 0 / 488.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.157, allocations: 7.938 kB / 488.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.1572, allocations: 35.97 kB / 488.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.1572, allocations: 4 kB / 488.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.1574, allocations: 31.8 kB / 488.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.1574, allocations: 8.062 kB / 488.2 MB, free: 12.78 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.0001294/0.1576, allocations: 145.8 kB / 488.4 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.717e-05/0.1576, allocations: 19.72 kB / 488.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.923e-05/0.1577, allocations: 21.39 kB / 488.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.1577, allocations: 7.938 kB / 488.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1577, allocations: 0 / 488.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.1577, allocations: 3.938 kB / 488.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002055/0.1579, allocations: 241.5 kB / 488.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1579, allocations: 0 / 488.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.1581, allocations: 31.97 kB / 488.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1581, allocations: 0 / 488.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.1581, allocations: 0 / 488.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.1581, allocations: 3.938 kB / 488.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1581, allocations: 11.88 kB / 488.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000911/0.1591, allocations: 296.8 kB / 489 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.717e-05/0.1591, allocations: 92.86 kB / 489.1 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.947e-05/0.1592, allocations: 7.984 kB / 489.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/0.1594, allocations: 23.91 kB / 489.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.41e-05/0.1594, allocations: 19.92 kB / 489.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.1595, allocations: 12.06 kB / 489.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001613/0.1596, allocations: 172.5 kB / 489.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1597, allocations: 0 / 489.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002733/0.1599, allocations: 39.98 kB / 489.3 MB, free: 11.56 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.001987/0.1619, allocations: 1.135 MB / 490.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006881/0.1626, allocations: 219.3 kB / 490.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.1626, allocations: 0 / 490.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002791/0.1629, allocations: 83.86 kB / 490.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.1633, allocations: 51.19 kB / 490.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003386/0.1667, allocations: 2.172 MB / 493 MB, free: 7.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.167, allocations: 0.728 MB / 493.7 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.1672, allocations: 25.47 kB / 493.7 MB, free: 7.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.1673, allocations: 59.41 kB / 493.8 MB, free: 7.074 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1673, allocations: 0 / 493.8 MB, free: 7.074 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02719/0.1945, allocations: 4.897 MB / 498.7 MB, free: 2.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.456/7.65, allocations: 18.06 kB / 498.7 MB, free: 2.234 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