Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.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.Test8,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test8",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test8,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test8",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001449/0.001448, allocations: 103 kB / 17.32 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001936/0.001936, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2263/0.2263, allocations: 46.11 MB / 343.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 81.91 kB / 417.2 MB, free: 19.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1243, allocations: 62.44 MB / 479.6 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test8): time 0.003254/0.1276, allocations: 1.809 MB / 481.4 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.1293, allocations: 1.009 MB / 482.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.157e-05/0.1294, allocations: 0 / 482.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003483/0.1298, allocations: 107.7 kB / 482.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003597/0.1302, allocations: 115.7 kB / 482.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000253/0.1304, allocations: 59.88 kB / 482.7 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002173/0.1307, allocations: 143.6 kB / 482.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.1308, allocations: 16 kB / 482.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.1309, allocations: 63.7 kB / 482.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/0.131, allocations: 67.8 kB / 483 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.1311, allocations: 8 kB / 483 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.1312, allocations: 51.98 kB / 483 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.853e-05/0.1313, allocations: 35.78 kB / 483.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.765e-05/0.1313, allocations: 51.66 kB / 483.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002339/0.1316, allocations: 159.8 kB / 483.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1316, allocations: 0 / 483.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1316, allocations: 4 kB / 483.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1316, allocations: 0 / 483.3 MB, free: 1.801 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005642/0.1322, allocations: 446.7 kB / 483.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/0.1322, allocations: 8.031 kB / 483.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.727e-05/0.1323, allocations: 38.73 kB / 483.8 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.605e-05/0.1323, allocations: 16.75 kB / 483.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.1326, allocations: 224.9 kB / 484 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.1326, allocations: 8.359 kB / 484 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.741e-05/0.1326, allocations: 11.88 kB / 484 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001681/0.1328, allocations: 65.67 kB / 484.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.1328, allocations: 0 / 484.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.1328, allocations: 4 kB / 484.1 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.1329, allocations: 3.938 kB / 484.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.818e-05/0.133, allocations: 35.91 kB / 484.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003951/0.1334, allocations: 320.7 kB / 484.4 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.1336, allocations: 82.58 kB / 484.5 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.455e-05/0.1337, allocations: 24.84 kB / 484.5 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.1337, allocations: 4 kB / 484.6 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002076/0.1339, allocations: 79.28 kB / 484.6 MB, free: 288 kB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.412e-06/0.134, allocations: 0 / 484.6 MB, free: 288 kB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008343/0.1348, allocations: 273.6 kB / 484.9 MB, free: 8 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.1349, allocations: 55.34 kB / 484.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/0.1351, allocations: 255.8 kB / 485.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.1351, allocations: 29.7 kB / 485.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.087e-05/0.1352, allocations: 112.1 kB / 485.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.25e-05/0.1353, allocations: 43.45 kB / 485.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.529e-05/0.1353, allocations: 21.72 kB / 485.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.1354, allocations: 330.8 kB / 485.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.174e-05/0.1355, allocations: 43.92 kB / 485.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.345e-05/0.1356, allocations: 45.7 kB / 485.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.1358, allocations: 89.64 kB / 485.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.1358, allocations: 0 / 485.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002543/0.136, allocations: 145.5 kB / 486 MB, free: 14.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.1361, allocations: 4 kB / 486 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1361, allocations: 8.031 kB / 486.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.1361, allocations: 0 / 486.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.1362, allocations: 27.92 kB / 486.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.1362, allocations: 0 / 486.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.355e-05/0.1363, allocations: 7.938 kB / 486.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-06/0.1363, allocations: 4 kB / 486.1 MB, free: 14.75 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 (14): * Single equations (assignments): 14 * 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.000117/0.1364, allocations: 140.4 kB / 486.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.276e-05/0.1365, allocations: 19.8 kB / 486.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.558e-05/0.1365, allocations: 29.34 kB / 486.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.1366, allocations: 11.92 kB / 486.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.1366, allocations: 3.938 kB / 486.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.1366, allocations: 3.984 kB / 486.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005406/0.1371, allocations: 479.9 kB / 486.8 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1371, allocations: 0 / 486.8 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.193e-05/0.1372, allocations: 16 kB / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.1372, allocations: 8.062 kB / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.1372, allocations: 0 / 486.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.1372, allocations: 7.984 kB / 486.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.1372, allocations: 4 kB / 486.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.1375, allocations: 240.9 kB / 487 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.799e-05/0.1376, allocations: 96.91 kB / 487.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.1376, allocations: 8 kB / 487.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.858e-05/0.1377, allocations: 4 kB / 487.1 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.1377, allocations: 11.92 kB / 487.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.1378, allocations: 8 kB / 487.2 MB, free: 13.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001507/0.1379, allocations: 189.5 kB / 487.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1379, allocations: 0 / 487.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002707/0.1382, allocations: 31.98 kB / 487.4 MB, free: 13.35 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 (12): * Single equations (assignments): 10 * 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.001487/0.1397, allocations: 1.178 MB / 488.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000216/0.1399, allocations: 95.84 kB / 488.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1399, allocations: 4.062 kB / 488.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.245e-05/0.14, allocations: 47.91 kB / 488.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.1404, allocations: 33.72 kB / 488.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.1424, allocations: 1.968 MB / 490.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.1427, allocations: 0.7279 MB / 491.4 MB, free: 9.332 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.827e-05/0.1428, allocations: 21.08 kB / 491.4 MB, free: 9.312 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.865e-05/0.1429, allocations: 55.36 kB / 491.5 MB, free: 9.258 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1429, allocations: 0 / 491.5 MB, free: 9.258 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.895/2.038, allocations: 4.024 MB / 495.5 MB, free: 5.34 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001996/2.038, allocations: 228.8 kB / 495.8 MB, free: 5.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.014/4.052, allocations: 0 / 495.8 MB, free: 5.09 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test8_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test8.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test8/Test8.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test8.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,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.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