Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.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.Test4,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test4,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001345, allocations: 199.7 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.349/1.349, allocations: 226.5 MB / 243.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008129/0.0008129, allocations: 92.33 kB / 295.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3271/0.3271, allocations: 44.81 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002674/0.0002674, allocations: 12 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3187, allocations: 62.96 MB / 0.516 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.001712/0.3205, allocations: 1.446 MB / 0.5174 GB, free: 36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.3218, allocations: 0.9535 MB / 0.5183 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.543e-05/0.3219, allocations: 0 / 0.5183 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003306/0.3222, allocations: 85.33 kB / 0.5184 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002652/0.3225, allocations: 95.92 kB / 0.5185 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.3227, allocations: 96.98 kB / 0.5186 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.3229, allocations: 103.4 kB / 0.5187 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.323, allocations: 9.734 kB / 0.5187 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.703e-05/0.3231, allocations: 53.34 kB / 0.5187 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.547e-05/0.3232, allocations: 49.89 kB / 0.5188 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.474e-05/0.3232, allocations: 6.906 kB / 0.5188 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.3233, allocations: 53.45 kB / 0.5188 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.886e-05/0.3234, allocations: 23.86 kB / 0.5189 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.21e-05/0.3235, allocations: 62.83 kB / 0.5189 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.3236, allocations: 98.66 kB / 0.519 GB, free: 35.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3236, allocations: 2.969 kB / 0.519 GB, free: 35.03 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3236, allocations: 0 / 0.519 GB, free: 35.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.3237, allocations: 0 / 0.519 GB, free: 35.03 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005187/0.3242, allocations: 424.1 kB / 0.5194 GB, free: 34.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.3242, allocations: 9 kB / 0.5194 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.098e-05/0.3243, allocations: 34.75 kB / 0.5195 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.625e-05/0.3243, allocations: 14.5 kB / 0.5195 GB, free: 34.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.3245, allocations: 215.5 kB / 0.5197 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.3245, allocations: 3.344 kB / 0.5197 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.239e-05/0.3246, allocations: 14.66 kB / 0.5197 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001427/0.3247, allocations: 62.11 kB / 0.5198 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.3247, allocations: 4 kB / 0.5198 GB, free: 34.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.3248, allocations: 3.984 kB / 0.5198 GB, free: 34.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.3248, allocations: 2.938 kB / 0.5198 GB, free: 34.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.265e-05/0.3249, allocations: 26.36 kB / 0.5198 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003209/0.3252, allocations: 301 kB / 0.5201 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002107/0.3254, allocations: 62.05 kB / 0.5201 GB, free: 33.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.278e-05/0.3255, allocations: 25.05 kB / 0.5202 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.3255, allocations: 2.812 kB / 0.5202 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001705/0.3257, allocations: 68.5 kB / 0.5202 GB, free: 33.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.3257, allocations: 0 / 0.5202 GB, free: 33.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006983/0.3264, allocations: 243 kB / 0.5205 GB, free: 33.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.3264, allocations: 63.28 kB / 0.5205 GB, free: 33.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.3266, allocations: 220.5 kB / 0.5207 GB, free: 33.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.3266, allocations: 25.7 kB / 0.5208 GB, free: 33.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.701e-05/0.3267, allocations: 116.1 kB / 0.5209 GB, free: 33.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.3267, allocations: 29.75 kB / 0.5209 GB, free: 33.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-06/0.3267, allocations: 2.75 kB / 0.5209 GB, free: 33.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.831e-05/0.3268, allocations: 332.3 kB / 0.5212 GB, free: 33.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.093e-05/0.3269, allocations: 25.75 kB / 0.5212 GB, free: 33.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.64e-05/0.3269, allocations: 50.2 kB / 0.5213 GB, free: 33.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.3271, allocations: 80.31 kB / 0.5214 GB, free: 32.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3271, allocations: 0 / 0.5214 GB, free: 32.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00018/0.3272, allocations: 127.5 kB / 0.5215 GB, free: 32.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.3273, allocations: 8.719 kB / 0.5215 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3273, allocations: 3.234 kB / 0.5215 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.3273, allocations: 32 / 0.5215 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.463e-05/0.3274, allocations: 29.12 kB / 0.5215 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.3274, allocations: 6.734 kB / 0.5215 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.565e-05/0.3274, allocations: 6.875 kB / 0.5215 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.3275, allocations: 7.156 kB / 0.5215 GB, free: 32.88 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 (13): * Single equations (assignments): 13 * 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 8.193e-05/0.3275, allocations: 133.6 kB / 0.5217 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.75e-05/0.3276, allocations: 13.78 kB / 0.5217 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.242e-05/0.3276, allocations: 15.41 kB / 0.5217 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3276, allocations: 6.906 kB / 0.5217 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.3276, allocations: 4 kB / 0.5217 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.3277, allocations: 3.422 kB / 0.5217 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004047/0.3281, allocations: 452.6 kB / 0.5221 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3281, allocations: 0 / 0.5221 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.15e-05/0.3281, allocations: 13.38 kB / 0.5222 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3281, allocations: 0 / 0.5222 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.3281, allocations: 7 kB / 0.5222 GB, free: 32.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.3282, allocations: 10.45 kB / 0.5222 GB, free: 32.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3282, allocations: 0 / 0.5222 GB, free: 32.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002034/0.3284, allocations: 228.5 kB / 0.5224 GB, free: 32.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.633e-05/0.3284, allocations: 97.48 kB / 0.5225 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.3285, allocations: 3.031 kB / 0.5225 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.306e-05/0.3285, allocations: 11.23 kB / 0.5225 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.3286, allocations: 13.05 kB / 0.5225 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.3286, allocations: 6.062 kB / 0.5225 GB, free: 32.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001237/0.3287, allocations: 163.4 kB / 0.5227 GB, free: 31.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3287, allocations: 0 / 0.5227 GB, free: 31.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002592/0.329, allocations: 32.03 kB / 0.5227 GB, free: 31.94 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 (11): * Single equations (assignments): 9 * 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.001354/0.3304, allocations: 1.185 MB / 0.5239 GB, free: 31.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000179/0.3306, allocations: 73.91 kB / 0.5239 GB, free: 31.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3306, allocations: 2.969 kB / 0.5239 GB, free: 31.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.671e-05/0.3306, allocations: 46.67 kB / 0.524 GB, free: 31.01 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.331, allocations: 25.95 kB / 0.524 GB, free: 31.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.3321, allocations: 0.8763 MB / 0.5249 GB, free: 30.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001446/0.3323, allocations: 0.7224 MB / 0.5256 GB, free: 29.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.585e-05/0.3324, allocations: 45.98 kB / 0.5256 GB, free: 29.7 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3324, allocations: 0 / 0.5256 GB, free: 29.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.81/3.143, allocations: 2.636 MB / 0.5282 GB, free: 29.41 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test4_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test4.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test4/Test4.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.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.isCsvExt,t_new.nHeaderLines,t_new.nextTimeEvent,t_new.nextTimeEventScaled,t_new.nout,t_new.offset[1],t_new.p_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.table[3,1],t_new.table[3,2],t_new.table[4,1],t_new.table[4,2],t_new.table[5,1],t_new.table[5,2],t_new.timeEvents,t_new.timeScale,t_new.timeScaled,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],time