Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.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.Test7,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test7,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test7",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 118 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001448/0.001448, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2326/0.2326, allocations: 46.1 MB / 343.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 79.08 kB / 417.2 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1382, allocations: 62.44 MB / 479.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test7): time 0.004344/0.1426, allocations: 1.808 MB / 481.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001883/0.1445, allocations: 1.006 MB / 482.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.1447, allocations: 0 / 482.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003987/0.1451, allocations: 111.7 kB / 482.5 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004141/0.1455, allocations: 111.7 kB / 482.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000257/0.1458, allocations: 55.89 kB / 482.7 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002199/0.146, allocations: 135.6 kB / 482.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.1462, allocations: 19.98 kB / 482.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.1464, allocations: 59.75 kB / 482.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.1465, allocations: 67.75 kB / 483 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.1465, allocations: 4 kB / 483 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.1467, allocations: 51.98 kB / 483 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.265e-05/0.1467, allocations: 39.78 kB / 483.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.699e-05/0.1468, allocations: 43.67 kB / 483.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002468/0.1471, allocations: 143.8 kB / 483.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1471, allocations: 4 kB / 483.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1471, allocations: 0 / 483.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1471, allocations: 0 / 483.2 MB, free: 1.844 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006769/0.1478, allocations: 442.8 kB / 483.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.1478, allocations: 8.031 kB / 483.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.075e-05/0.1479, allocations: 42.73 kB / 483.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.151e-05/0.148, allocations: 12.75 kB / 483.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.1482, allocations: 219.9 kB / 484 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.1483, allocations: 12.31 kB / 484 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/0.1483, allocations: 7.938 kB / 484 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.1485, allocations: 61.66 kB / 484 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.1485, allocations: 4 kB / 484 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.1485, allocations: 0 / 484 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.1485, allocations: 0 / 484 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.325e-05/0.1486, allocations: 31.97 kB / 484.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004335/0.1491, allocations: 312.6 kB / 484.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002526/0.1493, allocations: 62.55 kB / 484.4 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.82e-05/0.1494, allocations: 20.98 kB / 484.5 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.1494, allocations: 4 kB / 484.5 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.1497, allocations: 71.31 kB / 484.5 MB, free: 392 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.1497, allocations: 0 / 484.5 MB, free: 392 kB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007783/0.1505, allocations: 236.9 kB / 484.8 MB, free: 148 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.1505, allocations: 63.34 kB / 484.8 MB, free: 72 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002451/0.1508, allocations: 247.2 kB / 485.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.1508, allocations: 33.7 kB / 485.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.84e-05/0.1509, allocations: 108.1 kB / 485.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.864e-05/0.1509, allocations: 39.61 kB / 485.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.698e-05/0.151, allocations: 29.7 kB / 485.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1511, allocations: 322.8 kB / 485.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.705e-05/0.1512, allocations: 31.98 kB / 485.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.238e-05/0.1513, allocations: 49.64 kB / 485.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.1515, allocations: 81.64 kB / 485.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.1515, allocations: 0 / 485.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002366/0.1517, allocations: 125.5 kB / 485.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.1517, allocations: 4 kB / 485.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.1517, allocations: 0 / 485.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.1518, allocations: 7.969 kB / 485.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.663e-05/0.1519, allocations: 27.94 kB / 485.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.1519, allocations: 0 / 485.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.227e-05/0.1519, allocations: 3.984 kB / 485.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.1519, allocations: 4 kB / 485.9 MB, free: 14.92 MB / 366.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 0.0001252/0.1521, allocations: 136.6 kB / 486.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.71e-05/0.1521, allocations: 19.75 kB / 486.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.862e-05/0.1522, allocations: 21.41 kB / 486.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.1522, allocations: 3.938 kB / 486.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.1522, allocations: 7.984 kB / 486.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-06/0.1522, allocations: 3.938 kB / 486.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00056/0.1528, allocations: 452 kB / 486.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.1528, allocations: 8 kB / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.938e-05/0.1529, allocations: 15.94 kB / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1529, allocations: 0 / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.1529, allocations: 8.156 kB / 486.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1529, allocations: 7.922 kB / 486.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1529, allocations: 0 / 486.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002752/0.1532, allocations: 240.9 kB / 486.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.025e-05/0.1532, allocations: 88.92 kB / 486.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.812e-05/0.1533, allocations: 3.984 kB / 486.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.901e-05/0.1534, allocations: 12 kB / 486.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.104e-05/0.1534, allocations: 11.92 kB / 486.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.1534, allocations: 4 kB / 486.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001599/0.1536, allocations: 192.2 kB / 487.1 MB, free: 13.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1536, allocations: 0 / 487.1 MB, free: 13.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002876/0.1539, allocations: 32 kB / 487.2 MB, free: 13.57 MB / 366.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.001634/0.1555, allocations: 1.176 MB / 488.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002173/0.1558, allocations: 87.84 kB / 488.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1558, allocations: 0 / 488.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.333e-05/0.1559, allocations: 44.05 kB / 488.5 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.1563, allocations: 27.97 kB / 488.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00203/0.1583, allocations: 1.901 MB / 490.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.1586, allocations: 0.7236 MB / 491.1 MB, free: 9.645 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.092e-05/0.1587, allocations: 12.64 kB / 491.1 MB, free: 9.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.291e-05/0.1588, allocations: 51.41 kB / 491.2 MB, free: 9.582 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1588, allocations: 0 / 491.2 MB, free: 9.582 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.1824, allocations: 3.855 MB / 495 MB, free: 5.832 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003078/0.1827, allocations: 232.7 kB / 495.3 MB, free: 5.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/2.666, allocations: 0 / 495.3 MB, free: 5.578 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test7_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test7.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test7/Test7.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test7.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),der(der(t_new.timeScaled)),der(t_new.timeScaled),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[1,3],t_new.table[2,1],t_new.table[2,2],t_new.table[2,3],t_new.table[3,1],t_new.table[3,2],t_new.table[3,3],t_new.table[4,1],t_new.table[4,2],t_new.table[4,3],t_new.table[5,1],t_new.table[5,2],t_new.table[5,3],t_new.timeEvents,t_new.timeScale,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],time