Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test8,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test8",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test8,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test8",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001065/0.001065, allocations: 201.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.28/1.28, allocations: 226.5 MB / 243.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007996/0.0007993, allocations: 95.22 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3308/0.3308, allocations: 44.82 MB / 392.3 MB, free: 35.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002704/0.0002705, allocations: 12 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2755, allocations: 62.96 MB / 0.516 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test8): time 0.001619/0.2772, allocations: 1.438 MB / 0.5174 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.2783, allocations: 0.9585 MB / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.754e-05/0.2783, allocations: 0 / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002568/0.2786, allocations: 101 kB / 0.5184 GB, free: 35.19 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.2788, allocations: 111 kB / 0.5185 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.2791, allocations: 93.5 kB / 0.5186 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001254/0.2792, allocations: 112.7 kB / 0.5187 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.767e-05/0.2793, allocations: 16.53 kB / 0.5187 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.046e-05/0.2793, allocations: 55.33 kB / 0.5188 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.504e-05/0.2794, allocations: 61.56 kB / 0.5188 GB, free: 35 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.2795, allocations: 6.938 kB / 0.5188 GB, free: 35 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.615e-05/0.2795, allocations: 45.39 kB / 0.5189 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.941e-05/0.2796, allocations: 34.14 kB / 0.5189 GB, free: 34.97 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.313e-05/0.2796, allocations: 72.39 kB / 0.519 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.2798, allocations: 106.4 kB / 0.5191 GB, free: 34.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2798, allocations: 0 / 0.5191 GB, free: 34.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2798, allocations: 4 kB / 0.5191 GB, free: 34.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.868e-06/0.2798, allocations: 0 / 0.5191 GB, free: 34.88 MB / 378.7 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.0003999/0.2802, allocations: 431.4 kB / 0.5195 GB, free: 34.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.2802, allocations: 11.66 kB / 0.5195 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.196e-05/0.2803, allocations: 38.03 kB / 0.5196 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.893e-05/0.2803, allocations: 17.59 kB / 0.5196 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001869/0.2805, allocations: 226.7 kB / 0.5198 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.2805, allocations: 4.312 kB / 0.5198 GB, free: 34.17 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.2806, allocations: 11.69 kB / 0.5198 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.2807, allocations: 71.89 kB / 0.5199 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.2807, allocations: 2.75 kB / 0.5199 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.2807, allocations: 0 / 0.5199 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2807, allocations: 2.906 kB / 0.5199 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.677e-05/0.2808, allocations: 31.06 kB / 0.5199 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003033/0.2811, allocations: 326 kB / 0.5202 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.2814, allocations: 73.31 kB / 0.5203 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.664e-05/0.2814, allocations: 29.83 kB / 0.5203 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.2815, allocations: 0 / 0.5203 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001551/0.2816, allocations: 81.14 kB / 0.5204 GB, free: 33.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.2816, allocations: 0 / 0.5204 GB, free: 33.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006661/0.2823, allocations: 271.6 kB / 0.5207 GB, free: 33.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.2823, allocations: 62.28 kB / 0.5207 GB, free: 33.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.2825, allocations: 256.5 kB / 0.521 GB, free: 33.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.132e-05/0.2825, allocations: 25.7 kB / 0.521 GB, free: 33.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.083e-05/0.2826, allocations: 111.6 kB / 0.5211 GB, free: 33.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.2826, allocations: 40.39 kB / 0.5211 GB, free: 33.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-06/0.2826, allocations: 0 / 0.5211 GB, free: 33.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.115e-05/0.2827, allocations: 331.3 kB / 0.5214 GB, free: 32.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.362e-05/0.2827, allocations: 35.55 kB / 0.5215 GB, free: 32.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.765e-05/0.2828, allocations: 48.98 kB / 0.5215 GB, free: 32.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.2829, allocations: 88.72 kB / 0.5216 GB, free: 32.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.283, allocations: 0 / 0.5216 GB, free: 32.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001925/0.2832, allocations: 144.4 kB / 0.5217 GB, free: 32.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.2832, allocations: 6.812 kB / 0.5218 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2832, allocations: 6.906 kB / 0.5218 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.2832, allocations: 0 / 0.5218 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.631e-05/0.2833, allocations: 25.05 kB / 0.5218 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.2833, allocations: 2.781 kB / 0.5218 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.499e-05/0.2833, allocations: 10.41 kB / 0.5218 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.2834, allocations: 2.938 kB / 0.5218 GB, free: 32.68 MB / 378.7 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 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.744e-05/0.2834, allocations: 131.5 kB / 0.5219 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.958e-05/0.2835, allocations: 23.97 kB / 0.5219 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.228e-05/0.2835, allocations: 29.03 kB / 0.522 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.2835, allocations: 6.625 kB / 0.522 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2835, allocations: 0 / 0.522 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2835, allocations: 0 / 0.522 GB, free: 32.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004101/0.284, allocations: 478.7 kB / 0.5224 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.284, allocations: 3.938 kB / 0.5224 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.615e-05/0.284, allocations: 23.27 kB / 0.5225 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.284, allocations: 4.062 kB / 0.5225 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.284, allocations: 2.562 kB / 0.5225 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.284, allocations: 2.656 kB / 0.5225 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2841, allocations: 0 / 0.5225 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002039/0.2843, allocations: 251.6 kB / 0.5227 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.161e-05/0.2843, allocations: 91.83 kB / 0.5228 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.2843, allocations: 10.25 kB / 0.5228 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.182e-05/0.2844, allocations: 3 kB / 0.5228 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.91e-05/0.2845, allocations: 12.91 kB / 0.5228 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.2845, allocations: 5.875 kB / 0.5228 GB, free: 31.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001121/0.2846, allocations: 192.2 kB / 0.523 GB, free: 31.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2846, allocations: 0 / 0.523 GB, free: 31.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002485/0.2849, allocations: 35.97 kB / 0.523 GB, free: 31.7 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001211/0.2861, allocations: 1.197 MB / 0.5242 GB, free: 30.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00018/0.2863, allocations: 92.69 kB / 0.5243 GB, free: 30.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2863, allocations: 4.062 kB / 0.5243 GB, free: 30.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.454e-05/0.2864, allocations: 46.44 kB / 0.5244 GB, free: 30.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.2867, allocations: 28.88 kB / 0.5244 GB, free: 30.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.2879, allocations: 0.9941 MB / 0.5254 GB, free: 30.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.288, allocations: 0.7283 MB / 0.5261 GB, free: 29.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.658e-05/0.2881, allocations: 47.69 kB / 0.5261 GB, free: 29.4 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2881, allocations: 0 / 0.5261 GB, free: 29.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.873/3.161, allocations: 2.91 MB / 0.529 GB, free: 29.08 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test8_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test8.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_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.isCsvExt,t_new.nHeaderLines,t_new.nextTimeEvent,t_new.nextTimeEventScaled,t_new.nout,t_new.offset[1],t_new.p_offset[1],t_new.p_offset[2],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.timeScaled,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],t_new.y[2],time