Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test77.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.Test77,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.Test77") translateModel(ModelicaTest.Tables.CombiTimeTable.Test77,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.Test77") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009015/0.0009017, allocations: 200 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 226.5 MB / 243.1 MB, free: 12.56 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007595/0.0007595, allocations: 96.84 kB / 295.1 MB, free: 4.371 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1752/0.1752, allocations: 44.84 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002501/0.0002499, allocations: 8 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08591/0.08618, allocations: 62.96 MB / 0.5153 GB, free: 5.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test77): time 0.001528/0.08774, allocations: 1.595 MB / 0.5169 GB, free: 3.492 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.08886, allocations: 1.057 MB / 0.5179 GB, free: 2.43 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.143e-05/0.08894, allocations: 3.938 kB / 0.5179 GB, free: 2.426 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002815/0.08923, allocations: 155.6 kB / 0.5181 GB, free: 2.273 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002549/0.0895, allocations: 155.5 kB / 0.5182 GB, free: 2.121 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002918/0.0898, allocations: 147.7 kB / 0.5184 GB, free: 1.977 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.08997, allocations: 207.3 kB / 0.5186 GB, free: 1.773 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.005e-05/0.09006, allocations: 29.66 kB / 0.5186 GB, free: 1.746 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.571e-05/0.09016, allocations: 99.53 kB / 0.5187 GB, free: 1.648 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.09027, allocations: 115.5 kB / 0.5188 GB, free: 1.535 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.891e-05/0.0903, allocations: 8 kB / 0.5188 GB, free: 1.527 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.202e-05/0.0904, allocations: 51.98 kB / 0.5189 GB, free: 1.477 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.09045, allocations: 51.77 kB / 0.5189 GB, free: 1.426 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.978e-05/0.0905, allocations: 53.56 kB / 0.519 GB, free: 1.367 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.09065, allocations: 164 kB / 0.5191 GB, free: 1.207 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.09066, allocations: 0 / 0.5191 GB, free: 1.207 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.09067, allocations: 0 / 0.5191 GB, free: 1.207 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.09068, allocations: 0 / 0.5191 GB, free: 1.207 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004944/0.09118, allocations: 0.5021 MB / 0.5196 GB, free: 0.6562 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.893e-05/0.09121, allocations: 12.03 kB / 0.5196 GB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.104e-05/0.09126, allocations: 23.72 kB / 0.5196 GB, free: 0.6211 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.09148, allocations: 274.3 kB / 0.5199 GB, free: 320 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.0915, allocations: 8 kB / 0.5199 GB, free: 312 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.286e-05/0.09153, allocations: 8 kB / 0.5199 GB, free: 304 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.09172, allocations: 107.3 kB / 0.52 GB, free: 184 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.09174, allocations: 4 kB / 0.52 GB, free: 180 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.09176, allocations: 4 kB / 0.52 GB, free: 176 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.09177, allocations: 0 / 0.52 GB, free: 176 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001094/0.09189, allocations: 51.91 kB / 0.5201 GB, free: 124 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005052/0.0924, allocations: 468.8 kB / 0.5205 GB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.09274, allocations: 125.2 kB / 0.5206 GB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.024e-05/0.09284, allocations: 41.83 kB / 0.5207 GB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.09287, allocations: 3.984 kB / 0.5207 GB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000219/0.09309, allocations: 128.2 kB / 0.5208 GB, free: 15.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.0931, allocations: 0 / 0.5208 GB, free: 15.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001159/0.09427, allocations: 492.8 kB / 0.5213 GB, free: 14.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.09432, allocations: 85.09 kB / 0.5214 GB, free: 14.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003247/0.09466, allocations: 371.3 kB / 0.5217 GB, free: 14.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.09469, allocations: 37.7 kB / 0.5217 GB, free: 14.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.975e-05/0.09478, allocations: 144.5 kB / 0.5219 GB, free: 14.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.188e-05/0.09485, allocations: 70.98 kB / 0.5219 GB, free: 14.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.378e-06/0.09486, allocations: 11.94 kB / 0.522 GB, free: 14.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.09498, allocations: 338.8 kB / 0.5223 GB, free: 13.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.0951, allocations: 55.97 kB / 0.5223 GB, free: 13.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.09523, allocations: 94.69 kB / 0.5224 GB, free: 13.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.09536, allocations: 67.92 kB / 0.5225 GB, free: 13.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.09537, allocations: 0 / 0.5225 GB, free: 13.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003424/0.09572, allocations: 229.1 kB / 0.5227 GB, free: 13.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.09574, allocations: 7.953 kB / 0.5227 GB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.09575, allocations: 0 / 0.5227 GB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.09576, allocations: 4 kB / 0.5227 GB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.0959, allocations: 48.03 kB / 0.5228 GB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.09592, allocations: 4 kB / 0.5228 GB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.064e-05/0.096, allocations: 7.938 kB / 0.5228 GB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.09603, allocations: 15.98 kB / 0.5228 GB, free: 13.16 MB / 362.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.0001241/0.09616, allocations: 162.3 kB / 0.5229 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.413e-05/0.0962, allocations: 27.72 kB / 0.523 GB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.959e-05/0.09627, allocations: 42 kB / 0.523 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.09628, allocations: 8 kB / 0.523 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.09629, allocations: 4 kB / 0.523 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.0963, allocations: 0 / 0.523 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000748/0.09705, allocations: 0.7195 MB / 0.5237 GB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.09707, allocations: 4.031 kB / 0.5237 GB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.908e-05/0.09716, allocations: 31.92 kB / 0.5238 GB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.09717, allocations: 4 kB / 0.5238 GB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.09719, allocations: 8 kB / 0.5238 GB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.09719, allocations: 0 / 0.5238 GB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.0972, allocations: 4 kB / 0.5238 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003942/0.0976, allocations: 424.2 kB / 0.5242 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.283e-05/0.09767, allocations: 116.7 kB / 0.5243 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.09771, allocations: 8 kB / 0.5243 GB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.09785, allocations: 8 kB / 0.5243 GB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.577e-05/0.09791, allocations: 19.97 kB / 0.5243 GB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.09793, allocations: 16 kB / 0.5243 GB, free: 11.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002238/0.09816, allocations: 277.9 kB / 0.5246 GB, free: 11.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09817, allocations: 0 / 0.5246 GB, free: 11.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002964/0.09847, allocations: 44 kB / 0.5247 GB, free: 11.14 MB / 362.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 (22): * Single equations (assignments): 18 * 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.0009462/0.09942, allocations: 0.5161 MB / 0.5252 GB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002928/0.09973, allocations: 155.8 kB / 0.5253 GB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.09974, allocations: 0 / 0.5253 GB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.09988, allocations: 79.84 kB / 0.5254 GB, free: 10.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.1004, allocations: 61.44 kB / 0.5254 GB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007075/0.1011, allocations: 0.5759 MB / 0.526 GB, free: 9.895 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.1014, allocations: 0.7638 MB / 0.5267 GB, free: 9.105 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.649e-05/0.1015, allocations: 35.42 kB / 0.5268 GB, free: 9.07 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.1015, allocations: 0 / 0.5268 GB, free: 9.07 MB / 362.7 MB Notification: Performance of Templates: time 0.00472/0.1062, allocations: 3.551 MB / 0.5302 GB, free: 5.527 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test77.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test77.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test77.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test77.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test77.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test77 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test77.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test77_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test77/Test77.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test77.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches