Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.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.Test5,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test5,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001515/0.001523, allocations: 104.2 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002024/0.002024, 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.492/1.492, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2469/0.2469, allocations: 46.11 MB / 343.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 78.28 kB / 416.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1326, allocations: 62.45 MB / 479.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test5): time 0.003948/0.1366, allocations: 1.824 MB / 481.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.1387, allocations: 1.029 MB / 482.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.1389, allocations: 0 / 482.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004814/0.1394, allocations: 107.7 kB / 482.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004353/0.1399, allocations: 111.6 kB / 482.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.1402, allocations: 67.81 kB / 482.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002566/0.1404, allocations: 127.7 kB / 482.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.1406, allocations: 21.38 kB / 482.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.1407, allocations: 59.77 kB / 482.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.1409, allocations: 63.75 kB / 482.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.963e-05/0.1409, allocations: 8 kB / 482.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.1411, allocations: 67.89 kB / 482.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.909e-05/0.1412, allocations: 23.92 kB / 482.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.056e-05/0.1412, allocations: 51.61 kB / 482.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002582/0.1415, allocations: 155.8 kB / 483.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1415, allocations: 0 / 483.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.1415, allocations: 0 / 483.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1415, allocations: 0 / 483.1 MB, free: 1.879 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006547/0.1422, allocations: 458.6 kB / 483.5 MB, free: 1.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1422, allocations: 12.88 kB / 483.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.091e-05/0.1423, allocations: 38.73 kB / 483.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.471e-05/0.1424, allocations: 20.69 kB / 483.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002623/0.1426, allocations: 221 kB / 483.8 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.1426, allocations: 8.375 kB / 483.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.256e-05/0.1427, allocations: 7.922 kB / 483.8 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.1429, allocations: 73.61 kB / 483.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.1429, allocations: 3.984 kB / 483.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.1429, allocations: 4 kB / 483.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.1429, allocations: 0 / 483.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.143, allocations: 43.91 kB / 484 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004518/0.1435, allocations: 328.6 kB / 484.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003066/0.1438, allocations: 78.52 kB / 484.4 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.157e-05/0.1439, allocations: 24.86 kB / 484.4 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.1439, allocations: 4 kB / 484.4 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002414/0.1442, allocations: 87.45 kB / 484.5 MB, free: 328 kB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.1442, allocations: 3.938 kB / 484.5 MB, free: 324 kB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009646/0.1452, allocations: 300.7 kB / 484.8 MB, free: 16 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.1452, allocations: 55.41 kB / 484.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.1455, allocations: 255.8 kB / 485.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.1455, allocations: 33.7 kB / 485.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.868e-05/0.1456, allocations: 112.1 kB / 485.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.494e-05/0.1457, allocations: 47.36 kB / 485.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-05/0.1457, allocations: 29.7 kB / 485.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.1459, allocations: 330.8 kB / 485.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.73e-05/0.146, allocations: 35.98 kB / 485.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.1461, allocations: 60.5 kB / 485.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001752/0.1463, allocations: 109.6 kB / 485.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.1463, allocations: 0 / 485.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002872/0.1466, allocations: 153.5 kB / 486 MB, free: 14.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.1466, allocations: 4 kB / 486 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1466, allocations: 7.938 kB / 486 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.1466, allocations: 4.047 kB / 486 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-05/0.1467, allocations: 31.92 kB / 486 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.1467, allocations: 4 kB / 486 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.943e-05/0.1468, allocations: 4.031 kB / 486 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.1468, allocations: 8 kB / 486 MB, free: 14.7 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 (16): * Single equations (assignments): 16 * 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.0001304/0.1469, allocations: 141.7 kB / 486.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.293e-05/0.147, allocations: 15.81 kB / 486.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.733e-05/0.1471, allocations: 38.28 kB / 486.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.1471, allocations: 0 / 486.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1471, allocations: 0 / 486.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1471, allocations: 0 / 486.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006332/0.1477, allocations: 0.5038 MB / 486.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1477, allocations: 0 / 486.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.029e-05/0.1478, allocations: 19.94 kB / 486.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1478, allocations: 0 / 486.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.1478, allocations: 7.984 kB / 486.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.1479, allocations: 3.938 kB / 486.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1479, allocations: 12 kB / 486.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003299/0.1482, allocations: 257 kB / 487 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.526e-05/0.1483, allocations: 88.92 kB / 487.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.187e-05/0.1483, allocations: 8 kB / 487.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.149e-05/0.1484, allocations: 4 kB / 487.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.1484, allocations: 19.92 kB / 487.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.1485, allocations: 7.984 kB / 487.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001785/0.1487, allocations: 197.5 kB / 487.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1487, allocations: 0 / 487.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002947/0.149, allocations: 32 kB / 487.4 MB, free: 13.24 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 (14): * Single equations (assignments): 12 * 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.001731/0.1507, allocations: 1.2 MB / 488.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002425/0.151, allocations: 99.91 kB / 488.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.151, allocations: 0 / 488.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.1511, allocations: 51.91 kB / 488.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003817/0.1515, allocations: 39.67 kB / 488.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/0.1538, allocations: 2.029 MB / 490.8 MB, free: 9.891 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.1542, allocations: 0.7243 MB / 491.5 MB, free: 9.141 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.494e-05/0.1543, allocations: 29.41 kB / 491.5 MB, free: 9.113 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.154e-05/0.1544, allocations: 55.41 kB / 491.6 MB, free: 9.059 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1544, allocations: 0 / 491.6 MB, free: 9.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01454/0.1689, allocations: 4.061 MB / 495.7 MB, free: 5.094 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001856/0.1691, allocations: 237.7 kB / 495.9 MB, free: 4.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.134, allocations: 0 / 495.9 MB, free: 4.84 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test5/Test5.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,t_new.y[1],t_new.y[2],d_t_new.y,d_t_new2.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,d_t_new2.u,d_t_new2.y,der(d2_t_new.u),der(d_t_new.u),der(d_t_new2.u),der(der(t_new.timeScaled)),der(t_new.timeScaled),t_new.columns[1],t_new.columns[2],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],t_new.y[2],time