Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.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.Test87,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|d2_t_new.y|t_new_2.y.1.|d_t_new_2.y|d2_t_new_2.y|t_new_3.y.1.|d_t_new_3.y|d2_t_new_3.y|t_new_4.y.1.|d_t_new_4.y|d2_t_new_4.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87") translateModel(ModelicaTest.Tables.CombiTimeTable.Test87,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|d2_t_new.y|t_new_2.y.1.|d_t_new_2.y|d2_t_new_2.y|t_new_3.y.1.|d_t_new_3.y|d2_t_new_3.y|t_new_4.y.1.|d_t_new_4.y|d2_t_new_4.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001706/0.001706, allocations: 199.4 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.414/1.414, allocations: 226.5 MB / 243.4 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008392/0.0008392, allocations: 92.59 kB / 295.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3064/0.3064, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002642/0.0002643, allocations: 12 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2695, allocations: 62.96 MB / 0.5159 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test87): time 0.001843/0.2713, allocations: 1.901 MB / 0.5177 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.2728, allocations: 1.29 MB / 0.519 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.2729, allocations: 6.906 kB / 0.519 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003075/0.2733, allocations: 123.4 kB / 0.5191 GB, free: 34.83 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003395/0.2736, allocations: 212.2 kB / 0.5193 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005034/0.2741, allocations: 283.9 kB / 0.5196 GB, free: 34.59 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.2744, allocations: 389 kB / 0.52 GB, free: 34.43 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.2746, allocations: 64.69 kB / 0.52 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002283/0.2748, allocations: 246.5 kB / 0.5203 GB, free: 34.32 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.2749, allocations: 148.8 kB / 0.5204 GB, free: 34.26 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.306e-05/0.275, allocations: 6.594 kB / 0.5204 GB, free: 34.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.2751, allocations: 60.53 kB / 0.5205 GB, free: 34.25 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.2752, allocations: 135.9 kB / 0.5206 GB, free: 34.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.2753, allocations: 209.7 kB / 0.5208 GB, free: 34.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002423/0.2756, allocations: 342.7 kB / 0.5211 GB, free: 33.94 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2756, allocations: 3.375 kB / 0.5211 GB, free: 33.94 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2756, allocations: 0 / 0.5211 GB, free: 33.94 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.2756, allocations: 0 / 0.5211 GB, free: 33.94 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007645/0.2764, allocations: 0.809 MB / 0.5219 GB, free: 33.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.2764, allocations: 8.125 kB / 0.5219 GB, free: 33.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.125e-05/0.2765, allocations: 73.16 kB / 0.522 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003555/0.2769, allocations: 448.5 kB / 0.5224 GB, free: 32.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.2769, allocations: 10.19 kB / 0.5224 GB, free: 32.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.019e-05/0.2769, allocations: 24.16 kB / 0.5225 GB, free: 32.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.2772, allocations: 198 kB / 0.5226 GB, free: 32.76 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.2772, allocations: 0 / 0.5226 GB, free: 32.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.2773, allocations: 10.11 kB / 0.5227 GB, free: 32.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.2773, allocations: 2.969 kB / 0.5227 GB, free: 32.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001883/0.2775, allocations: 89.36 kB / 0.5227 GB, free: 32.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006318/0.2781, allocations: 0.8257 MB / 0.5236 GB, free: 32.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004837/0.2786, allocations: 247 kB / 0.5238 GB, free: 31.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.2788, allocations: 90.94 kB / 0.5239 GB, free: 31.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.2788, allocations: 9.875 kB / 0.5239 GB, free: 31.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003098/0.2791, allocations: 195.7 kB / 0.5241 GB, free: 31.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 1.934e-06/0.2791, allocations: 2.531 kB / 0.5241 GB, free: 31.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.001939/0.2811, allocations: 1.168 MB / 0.5252 GB, free: 31.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.2811, allocations: 138.1 kB / 0.5253 GB, free: 31.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007456/0.2819, allocations: 0.9583 MB / 0.5263 GB, free: 30.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.2819, allocations: 34.86 kB / 0.5263 GB, free: 30.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.282, allocations: 273.3 kB / 0.5266 GB, free: 30.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.926e-05/0.2821, allocations: 139.1 kB / 0.5267 GB, free: 30.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.501e-05/0.2821, allocations: 10.78 kB / 0.5267 GB, free: 30.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.487e-05/0.2822, allocations: 326.8 kB / 0.527 GB, free: 29.99 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.2824, allocations: 106.1 kB / 0.5271 GB, free: 29.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.2826, allocations: 187.4 kB / 0.5273 GB, free: 29.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004175/0.283, allocations: 319.9 kB / 0.5276 GB, free: 29.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.283, allocations: 3.031 kB / 0.5276 GB, free: 29.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005719/0.2836, allocations: 436.6 kB / 0.528 GB, free: 29.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.2836, allocations: 5.75 kB / 0.528 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.2836, allocations: 0 / 0.528 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.2837, allocations: 5.688 kB / 0.528 GB, free: 29.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.2839, allocations: 84.8 kB / 0.5281 GB, free: 29.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.2839, allocations: 13.31 kB / 0.5281 GB, free: 29.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.2841, allocations: 30.39 kB / 0.5282 GB, free: 29.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.2841, allocations: 11.72 kB / 0.5282 GB, free: 29.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition4,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled,$whenCondition3,$PRE.t_new_2.nextTimeEvent,t_new_2.nextTimeEvent,$PRE.t_new_2.nextTimeEventScaled,t_new_2.nextTimeEventScaled,$whenCondition2,$PRE.t_new_3.nextTimeEvent,t_new_3.nextTimeEvent,$PRE.t_new_3.nextTimeEventScaled,t_new_3.nextTimeEventScaled,$whenCondition1,$PRE.t_new_4.nextTimeEvent,t_new_4.nextTimeEvent,$PRE.t_new_4.nextTimeEventScaled,t_new_4.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0001905/0.2843, allocations: 250.6 kB / 0.5284 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.049e-05/0.2844, allocations: 77.41 kB / 0.5285 GB, free: 29.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.2845, allocations: 93.44 kB / 0.5286 GB, free: 29.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.2845, allocations: 5.75 kB / 0.5286 GB, free: 29.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2845, allocations: 4 kB / 0.5286 GB, free: 29.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.2845, allocations: 6.969 kB / 0.5286 GB, free: 29.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/0.2857, allocations: 1.339 MB / 0.5299 GB, free: 28.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.2857, allocations: 3 kB / 0.5299 GB, free: 28.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.2859, allocations: 61.12 kB / 0.53 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.2859, allocations: 5.688 kB / 0.53 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.2859, allocations: 19.78 kB / 0.53 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.2859, allocations: 5.594 kB / 0.53 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2859, allocations: 6.688 kB / 0.53 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006232/0.2866, allocations: 0.782 MB / 0.5308 GB, free: 27.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.2867, allocations: 197.8 kB / 0.531 GB, free: 27.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.159e-05/0.2868, allocations: 17.59 kB / 0.531 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002795/0.2871, allocations: 22.69 kB / 0.531 GB, free: 27.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.262e-05/0.2872, allocations: 38.75 kB / 0.531 GB, free: 27.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.383e-05/0.2872, allocations: 24.56 kB / 0.5311 GB, free: 27.53 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005423/0.2877, allocations: 0.7061 MB / 0.5317 GB, free: 27.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2878, allocations: 384 / 0.5317 GB, free: 27.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004612/0.2882, allocations: 89.41 kB / 0.5318 GB, free: 27.26 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,t_new_4.nextTimeEvent,t_new_4.nextTimeEventScaled,$whenCondition2,t_new_3.nextTimeEvent,t_new_3.nextTimeEventScaled,$whenCondition3,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled,$whenCondition4,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 8 (t_new.nextTimeEvent,t_new.nextTimeEventScaled,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled,t_new_3.nextTimeEvent,t_new_3.nextTimeEventScaled,t_new_4.nextTimeEvent,t_new_4.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0009757/0.2892, allocations: 0.5219 MB / 0.5323 GB, free: 27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000479/0.2897, allocations: 314 kB / 0.5326 GB, free: 26.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2897, allocations: 0 / 0.5326 GB, free: 26.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002392/0.2899, allocations: 161.7 kB / 0.5328 GB, free: 26.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.291, allocations: 123.4 kB / 0.5329 GB, free: 26.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.2923, allocations: 1.369 MB / 0.5342 GB, free: 26.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.2926, allocations: 0.9137 MB / 0.5351 GB, free: 25.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.911e-05/0.2927, allocations: 54.16 kB / 0.5352 GB, free: 25.29 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2927, allocations: 0 / 0.5352 GB, free: 25.29 MB / 378.7 MB Notification: Performance of Templates: time 0.00891/0.3016, allocations: 6.702 MB / 0.5417 GB, free: 24.46 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test87/Test87.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches