Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28.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.Test28,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28") translateModel(ModelicaTest.Tables.CombiTimeTable.Test28,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000918/0.000918, allocations: 198.4 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 226.5 MB / 243.1 MB, free: 12.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007444/0.0007444, allocations: 95.81 kB / 295.1 MB, free: 4.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1816/0.1816, allocations: 44.84 MB / 392 MB, free: 11.41 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002245/0.0002244, allocations: 8 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08972/0.08996, allocations: 62.96 MB / 0.5153 GB, free: 5.117 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test28): time 0.001515/0.09151, allocations: 1.416 MB / 0.5167 GB, free: 3.684 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.09256, allocations: 0.9402 MB / 0.5176 GB, free: 2.738 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.322e-05/0.09265, allocations: 7.938 kB / 0.5176 GB, free: 2.73 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002257/0.09288, allocations: 35.89 kB / 0.5177 GB, free: 2.695 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001927/0.09308, allocations: 71.73 kB / 0.5177 GB, free: 2.625 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002088/0.0933, allocations: 95.03 kB / 0.5178 GB, free: 2.535 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001143/0.09342, allocations: 95.67 kB / 0.5179 GB, free: 2.441 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.636e-05/0.09351, allocations: 11.98 kB / 0.5179 GB, free: 2.43 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.773e-05/0.09358, allocations: 43.72 kB / 0.518 GB, free: 2.387 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.475e-05/0.09364, allocations: 27.86 kB / 0.518 GB, free: 2.359 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.375e-05/0.09366, allocations: 4 kB / 0.518 GB, free: 2.355 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.223e-05/0.09374, allocations: 43.91 kB / 0.5181 GB, free: 2.312 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.18e-05/0.09378, allocations: 11.92 kB / 0.5181 GB, free: 2.301 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.938e-05/0.09381, allocations: 37.7 kB / 0.5181 GB, free: 2.258 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.09393, allocations: 96.08 kB / 0.5182 GB, free: 2.164 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.09394, allocations: 0 / 0.5182 GB, free: 2.164 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.09395, allocations: 3.938 kB / 0.5182 GB, free: 2.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.09396, allocations: 7.938 kB / 0.5182 GB, free: 2.152 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.0003881/0.09435, allocations: 391 kB / 0.5186 GB, free: 1.723 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.09439, allocations: 12.03 kB / 0.5186 GB, free: 1.711 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.32e-05/0.09443, allocations: 11.81 kB / 0.5186 GB, free: 1.699 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.0946, allocations: 215.5 kB / 0.5188 GB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.09463, allocations: 0 / 0.5188 GB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.09465, allocations: 4 kB / 0.5188 GB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.09477, allocations: 57.67 kB / 0.5189 GB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.09479, allocations: 0 / 0.5189 GB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.09481, allocations: 3.938 kB / 0.5189 GB, free: 1.379 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.09482, allocations: 0 / 0.5189 GB, free: 1.379 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.04e-05/0.09488, allocations: 19.98 kB / 0.5189 GB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002651/0.09515, allocations: 280.9 kB / 0.5192 GB, free: 1.035 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.0953, allocations: 62.67 kB / 0.5192 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.29e-05/0.09535, allocations: 24.78 kB / 0.5192 GB, free: 0.9375 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.09538, allocations: 4 kB / 0.5192 GB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001385/0.09552, allocations: 67.3 kB / 0.5193 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.293e-06/0.09553, allocations: 0 / 0.5193 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004271/0.09596, allocations: 173.2 kB / 0.5195 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.133e-05/0.096, allocations: 59.41 kB / 0.5195 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.09613, allocations: 200.1 kB / 0.5197 GB, free: 416 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.886e-06/0.09614, allocations: 29.7 kB / 0.5197 GB, free: 380 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.177e-05/0.09618, allocations: 104.1 kB / 0.5198 GB, free: 272 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.0962, allocations: 19.72 kB / 0.5199 GB, free: 252 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-06/0.09621, allocations: 0 / 0.5199 GB, free: 252 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.43e-05/0.09631, allocations: 322.8 kB / 0.5202 GB, free: 15.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.841e-05/0.09637, allocations: 23.98 kB / 0.5202 GB, free: 15.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.734e-05/0.09643, allocations: 37.7 kB / 0.5202 GB, free: 15.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.741e-05/0.0965, allocations: 27.92 kB / 0.5203 GB, free: 15.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.0965, allocations: 0 / 0.5203 GB, free: 15.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001735/0.09668, allocations: 105.5 kB / 0.5204 GB, free: 15.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.09671, allocations: 6.344 kB / 0.5204 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.09672, allocations: 0 / 0.5204 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-06/0.09673, allocations: 0 / 0.5204 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.181e-05/0.09682, allocations: 19.94 kB / 0.5204 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.09683, allocations: 4.031 kB / 0.5204 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.599e-05/0.09688, allocations: 8.172 kB / 0.5204 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.0969, allocations: 3.953 kB / 0.5204 GB, free: 15.68 MB / 362.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 8.89e-05/0.09699, allocations: 129.8 kB / 0.5205 GB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.63e-05/0.09701, allocations: 11.84 kB / 0.5205 GB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.01e-05/0.09706, allocations: 17.39 kB / 0.5206 GB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.09707, allocations: 4 kB / 0.5206 GB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.09708, allocations: 0 / 0.5206 GB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.09708, allocations: 4 kB / 0.5206 GB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000389/0.09748, allocations: 403.4 kB / 0.5209 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.09749, allocations: 4 kB / 0.5209 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.982e-05/0.09753, allocations: 8 kB / 0.521 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.09753, allocations: 0 / 0.521 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.09755, allocations: 4 kB / 0.521 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.09756, allocations: 0 / 0.521 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.09756, allocations: 11.89 kB / 0.521 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000194/0.09776, allocations: 200.2 kB / 0.5212 GB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.744e-05/0.09782, allocations: 93 kB / 0.5213 GB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.09785, allocations: 0 / 0.5213 GB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.865e-05/0.09792, allocations: 4 kB / 0.5213 GB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.043e-05/0.09796, allocations: 11.94 kB / 0.5213 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.09798, allocations: 4 kB / 0.5213 GB, free: 14.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001034/0.09809, allocations: 151.2 kB / 0.5214 GB, free: 14.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.09809, allocations: 0 / 0.5214 GB, free: 14.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000222/0.09832, allocations: 20 kB / 0.5214 GB, free: 14.52 MB / 362.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.0008678/0.09919, allocations: 477.4 kB / 0.5219 GB, free: 14.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001503/0.09935, allocations: 55.97 kB / 0.5219 GB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.09936, allocations: 0 / 0.5219 GB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.592e-05/0.09944, allocations: 31.92 kB / 0.522 GB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.09974, allocations: 31.64 kB / 0.522 GB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004043/0.1002, allocations: 271.9 kB / 0.5223 GB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.1004, allocations: 0.7043 MB / 0.5229 GB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.681e-05/0.1005, allocations: 23.42 kB / 0.523 GB, free: 13.03 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1005, allocations: 4 kB / 0.523 GB, free: 13.03 MB / 362.7 MB Notification: Performance of Templates: time 0.003174/0.1036, allocations: 1.928 MB / 0.5249 GB, free: 11.11 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test28/Test28.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test28.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches