Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.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.Test41,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41") translateModel(ModelicaTest.Tables.CombiTimeTable.Test41,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001569/0.001569, allocations: 196.3 kB / 16.79 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 226.5 MB / 244.1 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000795/0.0007951, allocations: 88.66 kB / 296.1 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2916/0.2916, allocations: 44.82 MB / 392.9 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002505/0.0002505, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.3698, allocations: 62.96 MB / 0.5165 GB, free: 37.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1022/0.472, allocations: 90.65 MB / 0.605 GB, free: 14.74 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.4722, allocations: 75.95 kB / 0.6051 GB, free: 14.66 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01774/0.49, allocations: 6.634 MB / 0.6116 GB, free: 8.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.49, allocations: 0 / 0.6116 GB, free: 8.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.49, allocations: 4 kB / 0.6116 GB, free: 8.016 MB / 426.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.0005228/0.4906, allocations: 458.8 kB / 0.612 GB, free: 7.516 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.4906, allocations: 12.03 kB / 0.612 GB, free: 7.504 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.384e-05/0.4907, allocations: 8.844 kB / 0.612 GB, free: 7.496 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/0.491, allocations: 226.4 kB / 0.6122 GB, free: 7.238 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.491, allocations: 4.312 kB / 0.6122 GB, free: 7.234 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.491, allocations: 12.36 kB / 0.6122 GB, free: 7.223 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.4911, allocations: 50.23 kB / 0.6123 GB, free: 7.168 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.4912, allocations: 4.188 kB / 0.6123 GB, free: 7.164 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.4912, allocations: 3.938 kB / 0.6123 GB, free: 7.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.4912, allocations: 4 kB / 0.6123 GB, free: 7.156 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.282e-05/0.4913, allocations: 19.98 kB / 0.6123 GB, free: 7.137 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003547/0.4916, allocations: 304.8 kB / 0.6126 GB, free: 6.789 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.4918, allocations: 66.55 kB / 0.6127 GB, free: 6.715 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.469e-05/0.4919, allocations: 20.86 kB / 0.6127 GB, free: 6.691 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/0.4919, allocations: 0 / 0.6127 GB, free: 6.691 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00014/0.492, allocations: 75.38 kB / 0.6128 GB, free: 6.605 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.492, allocations: 0 / 0.6128 GB, free: 6.605 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005313/0.4926, allocations: 177.1 kB / 0.6129 GB, free: 6.426 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.4926, allocations: 51.41 kB / 0.613 GB, free: 6.363 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.4928, allocations: 220.3 kB / 0.6132 GB, free: 6.133 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.4929, allocations: 29.7 kB / 0.6132 GB, free: 6.098 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.242e-05/0.4929, allocations: 112 kB / 0.6133 GB, free: 5.984 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.493, allocations: 27.59 kB / 0.6134 GB, free: 5.957 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-06/0.493, allocations: 4 kB / 0.6134 GB, free: 5.953 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.4931, allocations: 330.8 kB / 0.6137 GB, free: 5.621 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.72e-05/0.4931, allocations: 27.88 kB / 0.6137 GB, free: 5.594 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.197e-05/0.4932, allocations: 37.7 kB / 0.6137 GB, free: 5.551 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001101/0.4933, allocations: 57.7 kB / 0.6138 GB, free: 5.488 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.4933, allocations: 0 / 0.6138 GB, free: 5.488 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001992/0.4935, allocations: 117.6 kB / 0.6139 GB, free: 5.367 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.4936, allocations: 4 kB / 0.6139 GB, free: 5.363 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.4936, allocations: 4 kB / 0.6139 GB, free: 5.359 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.4936, allocations: 0 / 0.6139 GB, free: 5.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.243e-05/0.4937, allocations: 15.98 kB / 0.6139 GB, free: 5.344 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.4937, allocations: 0 / 0.6139 GB, free: 5.344 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.748e-05/0.4937, allocations: 4 kB / 0.6139 GB, free: 5.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.4938, allocations: 4 kB / 0.6139 GB, free: 5.336 MB / 426.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 9.618e-05/0.4939, allocations: 147.5 kB / 0.6141 GB, free: 5.184 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.16e-05/0.4939, allocations: 11.81 kB / 0.6141 GB, free: 5.172 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002345/0.4941, allocations: 119 kB / 0.6142 GB, free: 5.051 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.4941, allocations: 4 kB / 0.6142 GB, free: 5.047 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.4941, allocations: 0 / 0.6142 GB, free: 5.047 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.4942, allocations: 0 / 0.6142 GB, free: 5.047 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000434/0.4946, allocations: 423.2 kB / 0.6146 GB, free: 4.574 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.4946, allocations: 4.031 kB / 0.6146 GB, free: 4.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.063e-05/0.4947, allocations: 15.98 kB / 0.6146 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.4947, allocations: 0 / 0.6146 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.4947, allocations: 0 / 0.6146 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.4947, allocations: 4 kB / 0.6146 GB, free: 4.551 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.4947, allocations: 3.938 kB / 0.6146 GB, free: 4.547 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002311/0.4949, allocations: 216.4 kB / 0.6148 GB, free: 4.316 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.983e-05/0.495, allocations: 100.9 kB / 0.6149 GB, free: 4.199 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.495, allocations: 480 / 0.6149 GB, free: 4.199 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.779e-05/0.4951, allocations: 15.92 kB / 0.615 GB, free: 4.184 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.132e-05/0.4952, allocations: 7.938 kB / 0.615 GB, free: 4.176 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.4952, allocations: 8 kB / 0.615 GB, free: 4.168 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001384/0.4953, allocations: 165.2 kB / 0.6151 GB, free: 4.008 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.303e-06/0.4953, allocations: 4 kB / 0.6151 GB, free: 4.004 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002648/0.4956, allocations: 43.86 kB / 0.6152 GB, free: 3.961 MB / 426.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 (9): * Single equations (assignments): 7 * 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.0009212/0.4965, allocations: 461.1 kB / 0.6156 GB, free: 3.672 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001774/0.4967, allocations: 63.91 kB / 0.6157 GB, free: 3.609 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.4967, allocations: 0 / 0.6157 GB, free: 3.609 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 7.295e-05/0.4968, allocations: 36.05 kB / 0.6157 GB, free: 3.574 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.4971, allocations: 28.03 kB / 0.6157 GB, free: 3.551 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000525/0.4977, allocations: 316.5 kB / 0.616 GB, free: 3.211 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.4979, allocations: 0.7043 MB / 0.6167 GB, free: 2.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.354e-05/0.498, allocations: 19.42 kB / 0.6167 GB, free: 2.461 MB / 426.7 MB Notification: Performance of SimCode: time 2.9e-07/0.498, allocations: 0 / 0.6167 GB, free: 2.461 MB / 426.7 MB Notification: Performance of Templates: time 0.003476/0.5014, allocations: 2.043 MB / 0.6187 GB, free: 432 kB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test41/Test41.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test41.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches