Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46.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.Test46,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46") translateModel(ModelicaTest.Tables.CombiTimeTable.Test46,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009462/0.0009461, allocations: 199.1 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.332/1.332, allocations: 226.6 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.001044/0.001043, allocations: 110.1 kB / 295.2 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.1896/0.1896, allocations: 44.83 MB / 392 MB, free: 9.328 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000245/0.0002451, allocations: 8 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09882/0.09908, allocations: 62.96 MB / 0.5153 GB, free: 2.758 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test46): time 0.00186/0.101, allocations: 1.428 MB / 0.5167 GB, free: 1.312 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.1023, allocations: 0.9441 MB / 0.5177 GB, free: 372 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.924e-05/0.1023, allocations: 3.938 kB / 0.5177 GB, free: 368 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000253/0.1026, allocations: 51.86 kB / 0.5177 GB, free: 316 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002092/0.1028, allocations: 83.72 kB / 0.5178 GB, free: 232 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002279/0.1031, allocations: 95.77 kB / 0.5179 GB, free: 136 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.1032, allocations: 91.69 kB / 0.518 GB, free: 44 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.097e-05/0.1033, allocations: 7.984 kB / 0.518 GB, free: 36 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1824/0.2857, allocations: 38.03 kB / 0.518 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.2859, allocations: 33.64 kB / 0.518 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.017e-05/0.2859, allocations: 2.219 kB / 0.518 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.2861, allocations: 36.56 kB / 0.5181 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.29e-05/0.2861, allocations: 32.55 kB / 0.5181 GB, free: 9.809 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.184e-05/0.2862, allocations: 40.14 kB / 0.5181 GB, free: 9.777 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001806/0.2864, allocations: 101.7 kB / 0.5182 GB, free: 9.777 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2864, allocations: 4.391 kB / 0.5182 GB, free: 9.777 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2864, allocations: 0 / 0.5182 GB, free: 9.777 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.2864, allocations: 1 kB / 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.000423/0.2868, allocations: 424.3 kB / 0.5187 GB, free: 9.383 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.2869, allocations: 10.14 kB / 0.5187 GB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.082e-05/0.2869, allocations: 17.5 kB / 0.5187 GB, free: 9.375 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.2871, allocations: 215.8 kB / 0.5189 GB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.2871, allocations: 1.625 kB / 0.5189 GB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.2871, allocations: 4.109 kB / 0.5189 GB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.2873, allocations: 55.52 kB / 0.5189 GB, free: 9.129 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2873, allocations: 4.531 kB / 0.5189 GB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.2873, allocations: 6.531 kB / 0.519 GB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2873, allocations: 1.062 kB / 0.519 GB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.354e-05/0.2874, allocations: 18.22 kB / 0.519 GB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003068/0.2877, allocations: 296.7 kB / 0.5193 GB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001559/0.2879, allocations: 61.16 kB / 0.5193 GB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.156e-05/0.288, allocations: 19.86 kB / 0.5193 GB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.034e-05/0.288, allocations: 2.516 kB / 0.5193 GB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001506/0.2882, allocations: 69.34 kB / 0.5194 GB, free: 8.777 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.352e-06/0.2882, allocations: 0 / 0.5194 GB, free: 8.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004852/0.2887, allocations: 180.9 kB / 0.5196 GB, free: 8.723 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.126e-05/0.2887, allocations: 53.28 kB / 0.5196 GB, free: 8.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002467/0.2889, allocations: 274 kB / 0.5199 GB, free: 8.555 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.289, allocations: 28.42 kB / 0.5199 GB, free: 8.523 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.744e-05/0.289, allocations: 113.1 kB / 0.52 GB, free: 8.441 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.442e-05/0.289, allocations: 29.8 kB / 0.5201 GB, free: 8.426 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.2891, allocations: 8.031 kB / 0.5201 GB, free: 8.422 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.152e-05/0.2891, allocations: 327 kB / 0.5204 GB, free: 8.109 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.911e-05/0.2892, allocations: 22.59 kB / 0.5204 GB, free: 8.109 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.251e-05/0.2892, allocations: 35.58 kB / 0.5204 GB, free: 8.094 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.037e-05/0.2893, allocations: 23.88 kB / 0.5204 GB, free: 8.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.2893, allocations: 0.5312 kB / 0.5204 GB, free: 8.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001628/0.2895, allocations: 111.3 kB / 0.5206 GB, free: 8.051 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.2895, allocations: 9.062 kB / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.2895, allocations: 1.875 kB / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.2895, allocations: 1.438 kB / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.156e-05/0.2896, allocations: 14.92 kB / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.2896, allocations: 2.219 kB / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.581e-05/0.2897, allocations: 3.25 kB / 0.5206 GB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.2897, allocations: 11.44 kB / 0.5206 GB, free: 8.039 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 7.948e-05/0.2898, allocations: 140.2 kB / 0.5207 GB, free: 7.922 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.051e-05/0.2898, allocations: 16.34 kB / 0.5207 GB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.502e-05/0.2899, allocations: 22.67 kB / 0.5208 GB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2899, allocations: 1.438 kB / 0.5208 GB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2899, allocations: 0 / 0.5208 GB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2899, allocations: 4.5 kB / 0.5208 GB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003516/0.2902, allocations: 407.6 kB / 0.5212 GB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2903, allocations: 0.9375 kB / 0.5212 GB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.172e-05/0.2903, allocations: 13.34 kB / 0.5212 GB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2903, allocations: 1.156 kB / 0.5212 GB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.2903, allocations: 5.5 kB / 0.5212 GB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.2903, allocations: 1.125 kB / 0.5212 GB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/0.2903, allocations: 5.688 kB / 0.5212 GB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001731/0.2905, allocations: 207.1 kB / 0.5214 GB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.136e-05/0.2905, allocations: 94.22 kB / 0.5215 GB, free: 7.348 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.323e-05/0.2906, allocations: 7.297 kB / 0.5215 GB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.937e-05/0.2906, allocations: 3.547 kB / 0.5215 GB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.429e-05/0.2907, allocations: 12.62 kB / 0.5215 GB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.2907, allocations: 4.516 kB / 0.5215 GB, free: 7.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001593/0.2909, allocations: 200.3 kB / 0.5217 GB, free: 7.266 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2909, allocations: 0 / 0.5217 GB, free: 7.266 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002287/0.2911, allocations: 22.8 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.0008185/0.2919, allocations: 473 kB / 0.5222 GB, free: 7.047 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001616/0.2921, allocations: 60.58 kB / 0.5222 GB, free: 7.047 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2921, allocations: 0 / 0.5222 GB, free: 7.047 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.38e-05/0.2922, allocations: 33.66 kB / 0.5223 GB, free: 7.043 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.2925, allocations: 30.23 kB / 0.5223 GB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004229/0.2929, allocations: 342.2 kB / 0.5226 GB, free: 6.82 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.2931, allocations: 0.7179 MB / 0.5233 GB, free: 6.125 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.197e-05/0.2931, allocations: 16.27 kB / 0.5233 GB, free: 6.117 MB / 346.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2931, allocations: 0 / 0.5233 GB, free: 6.117 MB / 346.7 MB Notification: Performance of Templates: time 0.003589/0.2967, allocations: 2.09 MB / 0.5254 GB, free: 5.895 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test46/Test46.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test46.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches