Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.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.Test5,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test5,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001435/0.001435, allocations: 192.6 kB / 16.1 MB, free: 5.559 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.5 MB / 243.4 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007562/0.0007564, allocations: 92.02 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3611/0.3611, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003433/0.0003433, allocations: 12 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3218, allocations: 62.96 MB / 0.516 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test5): time 0.001653/0.3235, allocations: 1.453 MB / 0.5174 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.3247, allocations: 0.9605 MB / 0.5183 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.473e-05/0.3248, allocations: 3.938 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002908/0.3251, allocations: 102.7 kB / 0.5184 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.3253, allocations: 114.6 kB / 0.5185 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.3255, allocations: 101.8 kB / 0.5186 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.3257, allocations: 115 kB / 0.5187 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.434e-05/0.3258, allocations: 18.81 kB / 0.5188 GB, free: 35.22 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.151e-05/0.3259, allocations: 56.97 kB / 0.5188 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.483e-05/0.326, allocations: 64.34 kB / 0.5189 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.326, allocations: 3.062 kB / 0.5189 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.303e-05/0.3261, allocations: 46.33 kB / 0.5189 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.456e-05/0.3262, allocations: 41.33 kB / 0.519 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.23e-05/0.3262, allocations: 65.33 kB / 0.519 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.3264, allocations: 109.6 kB / 0.5191 GB, free: 35.06 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3264, allocations: 0 / 0.5191 GB, free: 35.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3264, allocations: 0 / 0.5191 GB, free: 35.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.3264, allocations: 0 / 0.5191 GB, free: 35.06 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004292/0.3268, allocations: 446.8 kB / 0.5196 GB, free: 34.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.3269, allocations: 8.469 kB / 0.5196 GB, free: 34.63 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.128e-05/0.3269, allocations: 37.72 kB / 0.5196 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.2e-05/0.3269, allocations: 17.81 kB / 0.5196 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001933/0.3271, allocations: 233.5 kB / 0.5198 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.3272, allocations: 3.375 kB / 0.5198 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.048e-05/0.3272, allocations: 6.969 kB / 0.5199 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001415/0.3273, allocations: 69.42 kB / 0.5199 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.3273, allocations: 0 / 0.5199 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.3274, allocations: 8 kB / 0.5199 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.3274, allocations: 2.812 kB / 0.5199 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.693e-05/0.3275, allocations: 35.72 kB / 0.52 GB, free: 34.28 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003217/0.3278, allocations: 337.9 kB / 0.5203 GB, free: 33.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.328, allocations: 72.95 kB / 0.5204 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.757e-05/0.3281, allocations: 37.45 kB / 0.5204 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.3281, allocations: 3.328 kB / 0.5204 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000153/0.3283, allocations: 81.83 kB / 0.5205 GB, free: 33.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.402e-06/0.3283, allocations: 0 / 0.5205 GB, free: 33.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007069/0.329, allocations: 298.4 kB / 0.5208 GB, free: 33.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.746e-05/0.329, allocations: 58.22 kB / 0.5208 GB, free: 33.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.3292, allocations: 256.6 kB / 0.5211 GB, free: 33.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.3293, allocations: 32.64 kB / 0.5211 GB, free: 33.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.372e-05/0.3293, allocations: 114.3 kB / 0.5212 GB, free: 33.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.256e-05/0.3293, allocations: 58.09 kB / 0.5213 GB, free: 33.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.072e-06/0.3293, allocations: 0 / 0.5213 GB, free: 33.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.324e-05/0.3294, allocations: 328 kB / 0.5216 GB, free: 33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.767e-05/0.3295, allocations: 40.83 kB / 0.5216 GB, free: 32.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.261e-05/0.3296, allocations: 61.72 kB / 0.5217 GB, free: 32.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000133/0.3297, allocations: 95.78 kB / 0.5218 GB, free: 32.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.71e-07/0.3297, allocations: 0 / 0.5218 GB, free: 32.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002046/0.3299, allocations: 160.4 kB / 0.5219 GB, free: 32.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.3299, allocations: 6.844 kB / 0.5219 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3299, allocations: 3 kB / 0.5219 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.33, allocations: 3.938 kB / 0.5219 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.302e-05/0.3301, allocations: 28.34 kB / 0.5219 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.3301, allocations: 7.031 kB / 0.522 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.592e-05/0.3301, allocations: 10.5 kB / 0.522 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.816e-06/0.3301, allocations: 2.875 kB / 0.522 GB, free: 32.79 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 (16): * Single equations (assignments): 16 * 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.029e-05/0.3302, allocations: 136.5 kB / 0.5221 GB, free: 32.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.905e-05/0.3302, allocations: 16.97 kB / 0.5221 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.684e-05/0.3303, allocations: 25.25 kB / 0.5221 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.3303, allocations: 2.969 kB / 0.5221 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3303, allocations: 0 / 0.5221 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3303, allocations: 4 kB / 0.5221 GB, free: 32.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004395/0.3308, allocations: 0.5035 MB / 0.5226 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3308, allocations: 3.234 kB / 0.5226 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.961e-05/0.3308, allocations: 16.88 kB / 0.5227 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3308, allocations: 2.688 kB / 0.5227 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.3309, allocations: 10.03 kB / 0.5227 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3309, allocations: 4.062 kB / 0.5227 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3309, allocations: 6.75 kB / 0.5227 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002504/0.3311, allocations: 251.3 kB / 0.5229 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.436e-05/0.3312, allocations: 93.3 kB / 0.523 GB, free: 31.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.3312, allocations: 6.625 kB / 0.523 GB, free: 31.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.216e-05/0.3313, allocations: 9.906 kB / 0.523 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.3313, allocations: 8.938 kB / 0.523 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.3314, allocations: 13.16 kB / 0.523 GB, free: 31.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001201/0.3315, allocations: 194.9 kB / 0.5232 GB, free: 31.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3315, allocations: 3.938 kB / 0.5232 GB, free: 31.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002526/0.3317, allocations: 38.31 kB / 0.5233 GB, free: 31.8 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 (14): * Single equations (assignments): 12 * 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.001347/0.3331, allocations: 1.198 MB / 0.5244 GB, free: 30.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002105/0.3333, allocations: 106.8 kB / 0.5245 GB, free: 30.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.3333, allocations: 0 / 0.5245 GB, free: 30.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.9e-05/0.3334, allocations: 62.17 kB / 0.5246 GB, free: 30.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.3338, allocations: 28.33 kB / 0.5246 GB, free: 30.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.3351, allocations: 1.035 MB / 0.5256 GB, free: 30.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001701/0.3353, allocations: 0.727 MB / 0.5263 GB, free: 29.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.825e-05/0.3354, allocations: 53.58 kB / 0.5264 GB, free: 29.48 MB / 378.7 MB Notification: Performance of SimCode: time 1.132e-06/0.3354, allocations: 0 / 0.5264 GB, free: 29.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.867/3.203, allocations: 3.011 MB / 0.5293 GB, free: 29.14 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test5_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test5.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_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.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