Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.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.Test8,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|t_new.y.2.|d_t_new.y|d2_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8") translateModel(ModelicaTest.Tables.CombiTimeTable.Test8,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|t_new.y.2.|d_t_new.y|d2_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 195 kB / 16.78 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.357/1.357, allocations: 226.5 MB / 244.1 MB, free: 8.086 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000788/0.0007879, allocations: 109.6 kB / 296.1 MB, free: 6.852 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4036/0.4036, allocations: 44.82 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003118, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3551, allocations: 62.95 MB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1158/0.4709, allocations: 90.71 MB / 0.6051 GB, free: 14.64 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.4712, allocations: 71.97 kB / 0.6051 GB, free: 14.57 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01928/0.4905, allocations: 7.235 MB / 0.6122 GB, free: 7.332 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4905, allocations: 0 / 0.6122 GB, free: 7.332 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.561e-05/0.4906, allocations: 4 kB / 0.6122 GB, free: 7.328 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006078/0.4912, allocations: 478.6 kB / 0.6127 GB, free: 6.809 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.4912, allocations: 8.875 kB / 0.6127 GB, free: 6.801 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.487e-05/0.4913, allocations: 20.69 kB / 0.6127 GB, free: 6.781 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.4916, allocations: 233 kB / 0.6129 GB, free: 6.512 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.4916, allocations: 4.375 kB / 0.6129 GB, free: 6.508 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.332e-05/0.4917, allocations: 4.375 kB / 0.6129 GB, free: 6.504 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.4918, allocations: 70.16 kB / 0.613 GB, free: 6.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.4919, allocations: 192 / 0.613 GB, free: 6.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.4919, allocations: 7.938 kB / 0.613 GB, free: 6.422 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.4919, allocations: 0 / 0.613 GB, free: 6.422 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.7e-05/0.492, allocations: 39.97 kB / 0.613 GB, free: 6.383 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004375/0.4924, allocations: 332.7 kB / 0.6133 GB, free: 6.008 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002595/0.4927, allocations: 86.5 kB / 0.6134 GB, free: 5.914 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.1e-05/0.4928, allocations: 28.84 kB / 0.6135 GB, free: 5.883 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.4928, allocations: 4 kB / 0.6135 GB, free: 5.879 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/0.493, allocations: 79.38 kB / 0.6135 GB, free: 5.789 MB / 426.7 MB Notification: Performance of pre-optimization done (n=8): time 1.343e-06/0.493, allocations: 0 / 0.6135 GB, free: 5.789 MB / 426.7 MB Notification: Performance of matching and sorting (n=12): time 0.000801/0.4938, allocations: 292.1 kB / 0.6138 GB, free: 5.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.4939, allocations: 59.34 kB / 0.6139 GB, free: 5.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000261/0.4941, allocations: 255.8 kB / 0.6141 GB, free: 5.172 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.4942, allocations: 33.64 kB / 0.6141 GB, free: 5.133 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.12e-05/0.4942, allocations: 124 kB / 0.6143 GB, free: 5.008 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.551e-05/0.4943, allocations: 31.55 kB / 0.6143 GB, free: 4.977 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-06/0.4943, allocations: 4 kB / 0.6143 GB, free: 4.973 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.4944, allocations: 330.8 kB / 0.6146 GB, free: 4.641 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.535e-05/0.4945, allocations: 31.98 kB / 0.6146 GB, free: 4.609 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.613e-05/0.4946, allocations: 57.69 kB / 0.6147 GB, free: 4.547 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000157/0.4948, allocations: 89.7 kB / 0.6148 GB, free: 4.453 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.51e-07/0.4948, allocations: 0 / 0.6148 GB, free: 4.453 MB / 426.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002544/0.495, allocations: 149.4 kB / 0.6149 GB, free: 4.301 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.4951, allocations: 4 kB / 0.6149 GB, free: 4.297 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.4951, allocations: 0 / 0.6149 GB, free: 4.297 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.4951, allocations: 4 kB / 0.6149 GB, free: 4.293 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.473e-05/0.4952, allocations: 23.92 kB / 0.615 GB, free: 4.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.4952, allocations: 4 kB / 0.615 GB, free: 4.266 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.13e-05/0.4953, allocations: 8.031 kB / 0.615 GB, free: 4.258 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.4953, allocations: 7.984 kB / 0.615 GB, free: 4.25 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 (14): * Single equations (assignments): 14 * 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.0001255/0.4954, allocations: 141.8 kB / 0.6151 GB, free: 4.102 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.002e-05/0.4954, allocations: 19.72 kB / 0.6151 GB, free: 4.082 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003407/0.4958, allocations: 170.7 kB / 0.6153 GB, free: 3.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.4958, allocations: 7.984 kB / 0.6153 GB, free: 3.902 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.4958, allocations: 4 kB / 0.6153 GB, free: 3.898 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.4958, allocations: 0 / 0.6153 GB, free: 3.898 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006411/0.4965, allocations: 0.513 MB / 0.6158 GB, free: 3.324 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.4965, allocations: 0 / 0.6158 GB, free: 3.324 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.342e-05/0.4966, allocations: 19.98 kB / 0.6158 GB, free: 3.305 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.4966, allocations: 4 kB / 0.6158 GB, free: 3.301 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.4966, allocations: 11.88 kB / 0.6158 GB, free: 3.289 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.4966, allocations: 4 kB / 0.6158 GB, free: 3.285 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4966, allocations: 4.062 kB / 0.6158 GB, free: 3.281 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003277/0.4969, allocations: 256.9 kB / 0.6161 GB, free: 3.008 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.828e-05/0.497, allocations: 100.9 kB / 0.6162 GB, free: 2.891 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.249e-05/0.4971, allocations: 11.92 kB / 0.6162 GB, free: 2.879 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.787e-05/0.4971, allocations: 4 kB / 0.6162 GB, free: 2.875 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.4972, allocations: 19.98 kB / 0.6162 GB, free: 2.855 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.4972, allocations: 4 kB / 0.6162 GB, free: 2.852 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001874/0.4974, allocations: 201.4 kB / 0.6164 GB, free: 2.656 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4974, allocations: 0 / 0.6164 GB, free: 2.656 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002918/0.4977, allocations: 47.94 kB / 0.6165 GB, free: 2.609 MB / 426.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 (14): * Single equations (assignments): 12 * 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.001077/0.4988, allocations: 0.5162 MB / 0.617 GB, free: 2.277 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002191/0.499, allocations: 99.91 kB / 0.6171 GB, free: 2.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.499, allocations: 0 / 0.6171 GB, free: 2.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 9.799e-05/0.4991, allocations: 55.89 kB / 0.6171 GB, free: 2.125 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.4995, allocations: 27.98 kB / 0.6171 GB, free: 2.098 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006019/0.5001, allocations: 397.9 kB / 0.6175 GB, free: 1.672 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.5004, allocations: 0.732 MB / 0.6182 GB, free: 0.9141 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.258e-05/0.5005, allocations: 19.44 kB / 0.6183 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5005, allocations: 0 / 0.6183 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of Templates: time 0.004492/0.505, allocations: 2.497 MB / 0.6207 GB, free: 14.41 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test8/Test8.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test8.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches