Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47.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: translateModel(ModelicaTest.Tables.CombiTimeTable.Test47,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47") translateModel(ModelicaTest.Tables.CombiTimeTable.Test47,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001026, allocations: 200.9 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.5 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007688/0.0007688, allocations: 100 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1833/0.1833, allocations: 44.84 MB / 392 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002698/0.0002698, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09635/0.09663, allocations: 62.96 MB / 0.5153 GB, free: 2.754 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test47): time 0.001821/0.09851, allocations: 1.424 MB / 0.5167 GB, free: 1.312 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.09979, allocations: 0.9441 MB / 0.5176 GB, free: 372 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.61e-05/0.09987, allocations: 3.938 kB / 0.5176 GB, free: 368 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002645/0.1001, allocations: 51.86 kB / 0.5177 GB, free: 316 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002104/0.1004, allocations: 83.72 kB / 0.5178 GB, free: 232 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002443/0.1006, allocations: 98.02 kB / 0.5179 GB, free: 136 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001312/0.1008, allocations: 91.69 kB / 0.518 GB, free: 44 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.2e-05/0.1008, allocations: 7.984 kB / 0.518 GB, free: 36 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1888/0.2896, allocations: 40.42 kB / 0.518 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.2898, allocations: 31.33 kB / 0.518 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.707e-05/0.2898, allocations: 6.875 kB / 0.518 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001811/0.29, allocations: 36.55 kB / 0.5181 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.829e-05/0.2901, allocations: 27.03 kB / 0.5181 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.48e-05/0.2902, allocations: 41.2 kB / 0.5181 GB, free: 9.777 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002468/0.2904, allocations: 101.1 kB / 0.5182 GB, free: 9.777 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2905, allocations: 3.562 kB / 0.5182 GB, free: 9.777 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2905, allocations: 1.094 kB / 0.5182 GB, free: 9.777 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.2905, allocations: 0 / 0.5182 GB, free: 9.777 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005577/0.291, allocations: 427.4 kB / 0.5186 GB, free: 9.383 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.2911, allocations: 10.47 kB / 0.5187 GB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.544e-05/0.2912, allocations: 14.67 kB / 0.5187 GB, free: 9.375 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002422/0.2914, allocations: 217.3 kB / 0.5189 GB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.2914, allocations: 2.906 kB / 0.5189 GB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.2915, allocations: 3.281 kB / 0.5189 GB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.2917, allocations: 56.28 kB / 0.5189 GB, free: 9.129 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.2917, allocations: 10.09 kB / 0.5189 GB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.2917, allocations: 2.875 kB / 0.519 GB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.2917, allocations: 0.875 kB / 0.519 GB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.391e-05/0.2918, allocations: 18.41 kB / 0.519 GB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003834/0.2922, allocations: 294.9 kB / 0.5193 GB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.2924, allocations: 64.98 kB / 0.5193 GB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.22e-05/0.2925, allocations: 19.77 kB / 0.5193 GB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.2925, allocations: 1.031 kB / 0.5193 GB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001797/0.2927, allocations: 68.64 kB / 0.5194 GB, free: 8.777 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.814e-06/0.2927, allocations: 1.094 kB / 0.5194 GB, free: 8.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006659/0.2934, allocations: 181.3 kB / 0.5196 GB, free: 8.723 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/0.2935, allocations: 53.12 kB / 0.5196 GB, free: 8.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003653/0.2938, allocations: 277.3 kB / 0.5199 GB, free: 8.555 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.2939, allocations: 29.53 kB / 0.5199 GB, free: 8.523 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.2939, allocations: 117.6 kB / 0.52 GB, free: 8.438 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.155e-05/0.294, allocations: 29.94 kB / 0.5201 GB, free: 8.422 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.081e-06/0.294, allocations: 1.188 kB / 0.5201 GB, free: 8.422 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.952e-05/0.2941, allocations: 329.7 kB / 0.5204 GB, free: 8.109 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-05/0.2941, allocations: 17.86 kB / 0.5204 GB, free: 8.109 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.282e-05/0.2942, allocations: 37.31 kB / 0.5204 GB, free: 8.094 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.272e-05/0.2943, allocations: 23.58 kB / 0.5204 GB, free: 8.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.2944, allocations: 4 kB / 0.5205 GB, free: 8.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002596/0.2946, allocations: 106 kB / 0.5206 GB, free: 8.051 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.2946, allocations: 9.406 kB / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2947, allocations: 0 / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.2947, allocations: 1.781 kB / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.2948, allocations: 16.16 kB / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.2948, allocations: 4.281 kB / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.213e-05/0.2949, allocations: 7.375 kB / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.2949, allocations: 6.969 kB / 0.5206 GB, free: 8.043 MB / 346.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 (10): * Single equations (assignments): 10 * 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 0.0001052/0.295, allocations: 138.2 kB / 0.5207 GB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.965e-05/0.2951, allocations: 14.28 kB / 0.5207 GB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.654e-05/0.2951, allocations: 20.42 kB / 0.5208 GB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.2952, allocations: 1.562 kB / 0.5208 GB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2952, allocations: 0 / 0.5208 GB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.2952, allocations: 1.484 kB / 0.5208 GB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005032/0.2957, allocations: 411.1 kB / 0.5212 GB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2957, allocations: 8.188 kB / 0.5212 GB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.73e-05/0.2958, allocations: 8.203 kB / 0.5212 GB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.2958, allocations: 5.266 kB / 0.5212 GB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.2958, allocations: 2.156 kB / 0.5212 GB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2958, allocations: 0.8906 kB / 0.5212 GB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.2958, allocations: 8.891 kB / 0.5212 GB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002518/0.2961, allocations: 205.9 kB / 0.5214 GB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/0.2961, allocations: 95.75 kB / 0.5215 GB, free: 7.348 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.2962, allocations: 6.578 kB / 0.5215 GB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.2963, allocations: 3.703 kB / 0.5215 GB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.2963, allocations: 8.953 kB / 0.5215 GB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.2964, allocations: 7.531 kB / 0.5215 GB, free: 7.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002162/0.2966, allocations: 201.6 kB / 0.5217 GB, free: 7.266 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2966, allocations: 0 / 0.5217 GB, free: 7.266 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004059/0.297, allocations: 22.45 kB / 0.5217 GB, free: 7.266 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (8): * Single equations (assignments): 6 * 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.001266/0.2983, allocations: 475.2 kB / 0.5222 GB, free: 7.043 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002198/0.2985, allocations: 55.8 kB / 0.5222 GB, free: 7.043 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2985, allocations: 4.062 kB / 0.5222 GB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.29e-05/0.2986, allocations: 27.09 kB / 0.5223 GB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004843/0.2991, allocations: 33.66 kB / 0.5223 GB, free: 7.035 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005943/0.2997, allocations: 344.2 kB / 0.5226 GB, free: 6.816 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000169/0.2999, allocations: 0.7175 MB / 0.5233 GB, free: 6.121 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.507e-05/0.3, allocations: 17.73 kB / 0.5233 GB, free: 6.113 MB / 346.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3, allocations: 0 / 0.5233 GB, free: 6.113 MB / 346.7 MB Notification: Performance of Templates: time 0.005361/0.3054, allocations: 2.093 MB / 0.5254 GB, free: 5.891 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test47/Test47.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test47.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches