Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.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.Test7,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test7,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test7",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 196.8 kB / 16.1 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 243.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007818/0.0007819, allocations: 93.98 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3147/0.3147, allocations: 44.81 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002673, allocations: 11.98 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2799, allocations: 62.96 MB / 0.516 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test7): time 0.001834/0.2818, allocations: 1.443 MB / 0.5174 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.2829, allocations: 0.954 MB / 0.5183 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.769e-05/0.283, allocations: 0 / 0.5183 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003034/0.2833, allocations: 108.5 kB / 0.5184 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002353/0.2836, allocations: 105.9 kB / 0.5185 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002476/0.2838, allocations: 95.39 kB / 0.5186 GB, free: 35.56 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.284, allocations: 115.1 kB / 0.5187 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.2841, allocations: 11.17 kB / 0.5187 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.701e-05/0.2842, allocations: 48.92 kB / 0.5188 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.195e-05/0.2843, allocations: 55.14 kB / 0.5188 GB, free: 35.47 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.2843, allocations: 7.688 kB / 0.5188 GB, free: 35.47 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.273e-05/0.2844, allocations: 50.53 kB / 0.5189 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.154e-05/0.2844, allocations: 23.92 kB / 0.5189 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.047e-05/0.2845, allocations: 68.17 kB / 0.519 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.2846, allocations: 104.1 kB / 0.5191 GB, free: 35.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2847, allocations: 0 / 0.5191 GB, free: 35.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2847, allocations: 0 / 0.5191 GB, free: 35.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.2847, allocations: 0 / 0.5191 GB, free: 35.36 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.0004408/0.2851, allocations: 426.8 kB / 0.5195 GB, free: 34.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.2852, allocations: 8.688 kB / 0.5195 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.037e-05/0.2852, allocations: 36.91 kB / 0.5195 GB, free: 34.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.953e-05/0.2852, allocations: 22.53 kB / 0.5195 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.2854, allocations: 226.7 kB / 0.5198 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.2854, allocations: 3 kB / 0.5198 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.252e-05/0.2855, allocations: 10.72 kB / 0.5198 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.2856, allocations: 61.75 kB / 0.5198 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.2856, allocations: 3.906 kB / 0.5198 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.2856, allocations: 2.906 kB / 0.5198 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.2856, allocations: 0 / 0.5198 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.595e-05/0.2857, allocations: 27.23 kB / 0.5199 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002889/0.286, allocations: 314.6 kB / 0.5202 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.2862, allocations: 54.95 kB / 0.5202 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.899e-05/0.2863, allocations: 28.81 kB / 0.5202 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.2863, allocations: 2.844 kB / 0.5202 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001327/0.2864, allocations: 73.11 kB / 0.5203 GB, free: 34.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.2864, allocations: 2.938 kB / 0.5203 GB, free: 34.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006283/0.2871, allocations: 240.4 kB / 0.5205 GB, free: 34.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.313e-05/0.2871, allocations: 55.34 kB / 0.5206 GB, free: 34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.2873, allocations: 251.7 kB / 0.5208 GB, free: 33.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.107e-05/0.2873, allocations: 32.39 kB / 0.5209 GB, free: 33.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.037e-05/0.2873, allocations: 111.5 kB / 0.521 GB, free: 33.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.44e-05/0.2874, allocations: 37.81 kB / 0.521 GB, free: 33.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.2874, allocations: 2.75 kB / 0.521 GB, free: 33.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.822e-05/0.2874, allocations: 332.6 kB / 0.5213 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.67e-05/0.2875, allocations: 25.94 kB / 0.5214 GB, free: 33.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.29e-05/0.2876, allocations: 46.56 kB / 0.5214 GB, free: 33.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001101/0.2877, allocations: 75.97 kB / 0.5215 GB, free: 33.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.2877, allocations: 4 kB / 0.5215 GB, free: 33.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001769/0.2879, allocations: 130.4 kB / 0.5216 GB, free: 33.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.2879, allocations: 5.844 kB / 0.5216 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.2879, allocations: 0 / 0.5216 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.2879, allocations: 0 / 0.5216 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.197e-05/0.288, allocations: 24.59 kB / 0.5216 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.288, allocations: 0 / 0.5216 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.532e-05/0.2881, allocations: 14.36 kB / 0.5216 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.2881, allocations: 3.031 kB / 0.5216 GB, free: 33.19 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 7.429e-05/0.2882, allocations: 139.8 kB / 0.5218 GB, free: 33.06 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/0.2882, allocations: 16.88 kB / 0.5218 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.122e-05/0.2882, allocations: 21.72 kB / 0.5218 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.2882, allocations: 3.938 kB / 0.5218 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2882, allocations: 0 / 0.5218 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.2883, allocations: 0 / 0.5218 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.2886, allocations: 465.3 kB / 0.5223 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/0.2886, allocations: 0 / 0.5223 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.036e-05/0.2887, allocations: 17.91 kB / 0.5223 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2887, allocations: 3.234 kB / 0.5223 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.2887, allocations: 2.781 kB / 0.5223 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2887, allocations: 0 / 0.5223 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2887, allocations: 2.969 kB / 0.5223 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00019/0.2889, allocations: 235.7 kB / 0.5225 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.14e-05/0.289, allocations: 102.7 kB / 0.5226 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.16e-05/0.289, allocations: 0 / 0.5226 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.14e-05/0.2891, allocations: 2.875 kB / 0.5226 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.375e-05/0.2891, allocations: 13.09 kB / 0.5226 GB, free: 32.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.2891, allocations: 9.781 kB / 0.5226 GB, free: 32.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001071/0.2893, allocations: 190.5 kB / 0.5228 GB, free: 32.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2893, allocations: 4 kB / 0.5228 GB, free: 32.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002346/0.2895, allocations: 33.11 kB / 0.5229 GB, free: 32.23 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.001183/0.2907, allocations: 1.173 MB / 0.524 GB, free: 31.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001651/0.2909, allocations: 79.03 kB / 0.5241 GB, free: 31.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2909, allocations: 0 / 0.5241 GB, free: 31.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.769e-05/0.2909, allocations: 39 kB / 0.5241 GB, free: 31.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.2913, allocations: 32.67 kB / 0.5241 GB, free: 31.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.2924, allocations: 0.9623 MB / 0.5251 GB, free: 30.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001625/0.2926, allocations: 0.7171 MB / 0.5258 GB, free: 29.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.505e-05/0.2926, allocations: 45.97 kB / 0.5258 GB, free: 29.96 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2926, allocations: 0 / 0.5258 GB, free: 29.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.781/3.074, allocations: 2.785 MB / 0.5285 GB, free: 29.65 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test7_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test7.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test7/Test7.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test7.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[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],time