Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.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.Test79,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|t_new_2.y.1.|d_t_new_2.y|d2_t_new.y|d2_t_new_2.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79") translateModel(ModelicaTest.Tables.CombiTimeTable.Test79,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|t_new_2.y.1.|d_t_new_2.y|d2_t_new.y|d2_t_new_2.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009395/0.0009395, allocations: 191 kB / 16.78 MB, free: 4.926 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 226.5 MB / 244.1 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008059/0.0008059, allocations: 102.6 kB / 296.1 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3256/0.3256, allocations: 44.82 MB / 392.9 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002927/0.0002927, allocations: 12 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3384, allocations: 62.95 MB / 0.5165 GB, free: 37.07 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1212/0.4597, allocations: 90.9 MB / 0.6053 GB, free: 14.48 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.46, allocations: 75.97 kB / 0.6053 GB, free: 14.41 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02371/0.4837, allocations: 9.316 MB / 0.6144 GB, free: 5.078 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4838, allocations: 0 / 0.6144 GB, free: 5.078 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.4838, allocations: 4 kB / 0.6144 GB, free: 5.074 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000829/0.4846, allocations: 0.576 MB / 0.615 GB, free: 4.445 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.4847, allocations: 8.031 kB / 0.615 GB, free: 4.438 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.195e-05/0.4848, allocations: 32.56 kB / 0.615 GB, free: 4.406 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004727/0.4852, allocations: 331.9 kB / 0.6153 GB, free: 4.043 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.4853, allocations: 4.375 kB / 0.6153 GB, free: 4.039 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.4853, allocations: 8.375 kB / 0.6154 GB, free: 4.031 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002323/0.4855, allocations: 110 kB / 0.6155 GB, free: 3.914 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.4856, allocations: 8.094 kB / 0.6155 GB, free: 3.906 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.4856, allocations: 3.938 kB / 0.6155 GB, free: 3.902 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.4856, allocations: 0 / 0.6155 GB, free: 3.902 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.4857, allocations: 59.89 kB / 0.6155 GB, free: 3.844 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006111/0.4864, allocations: 0.4967 MB / 0.616 GB, free: 3.293 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003456/0.4867, allocations: 126.4 kB / 0.6161 GB, free: 3.152 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.887e-05/0.4868, allocations: 49.81 kB / 0.6162 GB, free: 3.098 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.4869, allocations: 4 kB / 0.6162 GB, free: 3.094 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002095/0.4871, allocations: 121 kB / 0.6163 GB, free: 2.957 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.4871, allocations: 4 kB / 0.6163 GB, free: 2.953 MB / 426.7 MB Notification: Performance of matching and sorting (n=22): time 0.00125/0.4884, allocations: 0.5044 MB / 0.6168 GB, free: 2.441 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.4884, allocations: 85.05 kB / 0.6169 GB, free: 2.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004787/0.4889, allocations: 440.5 kB / 0.6173 GB, free: 1.898 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.4889, allocations: 33.7 kB / 0.6173 GB, free: 1.859 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.738e-05/0.489, allocations: 164.5 kB / 0.6175 GB, free: 1.695 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.509e-05/0.4891, allocations: 67.09 kB / 0.6176 GB, free: 1.629 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.233e-05/0.4891, allocations: 8 kB / 0.6176 GB, free: 1.621 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.4893, allocations: 342.8 kB / 0.6179 GB, free: 1.277 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.4894, allocations: 59.92 kB / 0.6179 GB, free: 1.219 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.4895, allocations: 91.39 kB / 0.618 GB, free: 1.117 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.4898, allocations: 165.9 kB / 0.6182 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.4898, allocations: 0 / 0.6182 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003852/0.4902, allocations: 240.1 kB / 0.6184 GB, free: 0.707 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.4902, allocations: 4 kB / 0.6184 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.4902, allocations: 4 kB / 0.6184 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.4902, allocations: 0 / 0.6184 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.4904, allocations: 55.86 kB / 0.6185 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.4904, allocations: 0 / 0.6185 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.51e-05/0.4905, allocations: 15.98 kB / 0.6185 GB, free: 0.6289 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.4905, allocations: 8 kB / 0.6185 GB, free: 0.6211 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled,$whenCondition1,$PRE.t_new_2.nextTimeEvent,t_new_2.nextTimeEvent,$PRE.t_new_2.nextTimeEventScaled,t_new_2.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001459/0.4907, allocations: 166.3 kB / 0.6187 GB, free: 460 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.407e-05/0.4907, allocations: 31.62 kB / 0.6187 GB, free: 428 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004891/0.4912, allocations: 280.7 kB / 0.619 GB, free: 136 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.4912, allocations: 7.938 kB / 0.619 GB, free: 128 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.4912, allocations: 0 / 0.619 GB, free: 128 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.4912, allocations: 0 / 0.619 GB, free: 128 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009348/0.4922, allocations: 0.8053 MB / 0.6198 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.4922, allocations: 4 kB / 0.6198 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.459e-05/0.4923, allocations: 27.98 kB / 0.6198 GB, free: 15.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.4923, allocations: 4 kB / 0.6198 GB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.4923, allocations: 11.98 kB / 0.6198 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.4923, allocations: 7.938 kB / 0.6198 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4923, allocations: 3.984 kB / 0.6198 GB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000451/0.4928, allocations: 450.4 kB / 0.6202 GB, free: 14.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.4929, allocations: 120.7 kB / 0.6204 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.648e-05/0.493, allocations: 11.98 kB / 0.6204 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.4931, allocations: 16 kB / 0.6204 GB, free: 14.56 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.421e-05/0.4932, allocations: 23.91 kB / 0.6204 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.4932, allocations: 8 kB / 0.6204 GB, free: 14.53 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003216/0.4935, allocations: 327 kB / 0.6207 GB, free: 14.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4935, allocations: 0 / 0.6207 GB, free: 14.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003713/0.4939, allocations: 67.94 kB / 0.6208 GB, free: 14.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled,$whenCondition2,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 4 (t_new.nextTimeEvent,t_new.nextTimeEventScaled,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001097/0.495, allocations: 0.5204 MB / 0.6213 GB, free: 13.81 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0003287/0.4953, allocations: 172 kB / 0.6215 GB, free: 13.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4954, allocations: 0 / 0.6215 GB, free: 13.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.4955, allocations: 91.83 kB / 0.6215 GB, free: 13.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005578/0.4961, allocations: 51.88 kB / 0.6216 GB, free: 13.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009517/0.497, allocations: 0.6774 MB / 0.6223 GB, free: 12.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.4974, allocations: 0.7835 MB / 0.623 GB, free: 11.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.909e-05/0.4975, allocations: 31.44 kB / 0.6231 GB, free: 11.93 MB / 442.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4975, allocations: 0 / 0.6231 GB, free: 11.93 MB / 442.7 MB Notification: Performance of Templates: time 0.006049/0.5036, allocations: 3.95 MB / 0.6269 GB, free: 8.004 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test79/Test79.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test79.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,t_new.y[1],d_t_new.y,t_new_2.y[1],d_t_new_2.y,d2_t_new.y,d2_t_new_2.y Variables in the result:d2_t_new.y,d2_t_new_2.y,d_t_new.y,d_t_new_2.y,t_new.y[1],t_new_2.y[1],time