Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.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.Test5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|t_new.y.2.|d_t_new.y|d_t_new2.y|d2_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5") translateModel(ModelicaTest.Tables.CombiTimeTable.Test5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|t_new.y.2.|d_t_new.y|d_t_new2.y|d2_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009065/0.0009065, allocations: 198.5 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.281/1.281, allocations: 226.6 MB / 243.1 MB, free: 14.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007298/0.0007297, allocations: 96.84 kB / 295.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1893/0.1893, allocations: 44.85 MB / 392 MB, free: 9.285 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002307/0.0002308, allocations: 8 kB / 464.7 MB, free: 49.74 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/0.08655, allocations: 62.95 MB / 0.5153 GB, free: 2.75 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test5): time 0.001866/0.08845, allocations: 1.463 MB / 0.5168 GB, free: 1.27 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.08977, allocations: 0.9518 MB / 0.5177 GB, free: 320 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.14e-05/0.08984, allocations: 0 / 0.5177 GB, free: 320 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002726/0.09012, allocations: 107.7 kB / 0.5178 GB, free: 212 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000226/0.09036, allocations: 107.7 kB / 0.5179 GB, free: 104 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002385/0.09061, allocations: 91.81 kB / 0.518 GB, free: 12 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.1736/0.2643, allocations: 112.4 kB / 0.5181 GB, free: 9.883 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.2644, allocations: 18.45 kB / 0.5181 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.2645, allocations: 56.97 kB / 0.5182 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.2647, allocations: 59.73 kB / 0.5182 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.2647, allocations: 3.969 kB / 0.5182 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.2648, allocations: 49.59 kB / 0.5183 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.241e-05/0.2649, allocations: 30.7 kB / 0.5183 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.727e-05/0.265, allocations: 42.91 kB / 0.5183 GB, free: 9.848 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.2651, allocations: 118.8 kB / 0.5184 GB, free: 9.848 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2652, allocations: 1.656 kB / 0.5185 GB, free: 9.848 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2652, allocations: 0 / 0.5185 GB, free: 9.848 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.2652, allocations: 0 / 0.5185 GB, free: 9.848 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004536/0.2656, allocations: 441.4 kB / 0.5189 GB, free: 9.445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.2657, allocations: 9.219 kB / 0.5189 GB, free: 9.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.969e-05/0.2657, allocations: 15.66 kB / 0.5189 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.266, allocations: 230.6 kB / 0.5191 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.266, allocations: 4.188 kB / 0.5191 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.266, allocations: 5.594 kB / 0.5191 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001668/0.2662, allocations: 75.91 kB / 0.5192 GB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.2662, allocations: 3.266 kB / 0.5192 GB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.2662, allocations: 2.375 kB / 0.5192 GB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2662, allocations: 1.656 kB / 0.5192 GB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.2663, allocations: 38.27 kB / 0.5192 GB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003557/0.2667, allocations: 333.2 kB / 0.5196 GB, free: 8.914 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.2669, allocations: 76.62 kB / 0.5196 GB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.093e-05/0.267, allocations: 26.64 kB / 0.5197 GB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.267, allocations: 4 kB / 0.5197 GB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001638/0.2672, allocations: 77.41 kB / 0.5197 GB, free: 8.832 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.754e-06/0.2672, allocations: 1 kB / 0.5197 GB, free: 8.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007855/0.268, allocations: 305.7 kB / 0.52 GB, free: 8.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.128e-05/0.268, allocations: 57.25 kB / 0.5201 GB, free: 8.707 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/0.2683, allocations: 255.2 kB / 0.5203 GB, free: 8.605 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.2683, allocations: 30.34 kB / 0.5204 GB, free: 8.574 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.017e-05/0.2684, allocations: 118 kB / 0.5205 GB, free: 8.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.2684, allocations: 51.5 kB / 0.5205 GB, free: 8.457 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.2684, allocations: 1.953 kB / 0.5205 GB, free: 8.457 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.204e-05/0.2685, allocations: 330.1 kB / 0.5208 GB, free: 8.145 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.729e-05/0.2685, allocations: 38.7 kB / 0.5209 GB, free: 8.145 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.106e-05/0.2686, allocations: 55.5 kB / 0.5209 GB, free: 8.129 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.19e-05/0.2687, allocations: 39.22 kB / 0.521 GB, free: 8.129 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.2687, allocations: 0 / 0.521 GB, free: 8.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002534/0.269, allocations: 167.7 kB / 0.5211 GB, free: 8.082 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.269, allocations: 6.219 kB / 0.5211 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.269, allocations: 3.938 kB / 0.5211 GB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.269, allocations: 1.469 kB / 0.5211 GB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.44e-05/0.2691, allocations: 33.38 kB / 0.5212 GB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2691, allocations: 1.75 kB / 0.5212 GB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.101e-05/0.2692, allocations: 10.14 kB / 0.5212 GB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.2692, allocations: 4.844 kB / 0.5212 GB, free: 8.07 MB / 346.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 (16): * Single equations (assignments): 16 * 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.45e-05/0.2693, allocations: 143.1 kB / 0.5213 GB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.25e-05/0.2693, allocations: 15.39 kB / 0.5213 GB, free: 7.945 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.213e-05/0.2694, allocations: 27.58 kB / 0.5214 GB, free: 7.945 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2694, allocations: 4.141 kB / 0.5214 GB, free: 7.945 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.2694, allocations: 3.953 kB / 0.5214 GB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2694, allocations: 0.7969 kB / 0.5214 GB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004904/0.2699, allocations: 0.4928 MB / 0.5218 GB, free: 7.629 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.2699, allocations: 0.5625 kB / 0.5218 GB, free: 7.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.885e-05/0.27, allocations: 27.09 kB / 0.5219 GB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.27, allocations: 1.281 kB / 0.5219 GB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.27, allocations: 8.984 kB / 0.5219 GB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.27, allocations: 1.469 kB / 0.5219 GB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.27, allocations: 3.609 kB / 0.5219 GB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002472/0.2703, allocations: 263.2 kB / 0.5221 GB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.564e-05/0.2703, allocations: 95.88 kB / 0.5222 GB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.678e-05/0.2704, allocations: 8.062 kB / 0.5222 GB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.528e-05/0.2704, allocations: 6.844 kB / 0.5222 GB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-05/0.2705, allocations: 17.34 kB / 0.5223 GB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.2705, allocations: 6.562 kB / 0.5223 GB, free: 7.352 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001365/0.2707, allocations: 201.7 kB / 0.5225 GB, free: 7.27 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2707, allocations: 4 kB / 0.5225 GB, free: 7.266 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000237/0.2709, allocations: 33.48 kB / 0.5225 GB, free: 7.262 MB / 346.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.0009289/0.2718, allocations: 0.4977 MB / 0.523 GB, free: 7.027 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000206/0.2721, allocations: 99.22 kB / 0.5231 GB, free: 7.027 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2721, allocations: 0 / 0.5231 GB, free: 7.027 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.451e-05/0.2722, allocations: 50.34 kB / 0.5231 GB, free: 7.027 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.2725, allocations: 35.56 kB / 0.5232 GB, free: 7.023 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004782/0.273, allocations: 383.1 kB / 0.5235 GB, free: 6.785 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001445/0.2731, allocations: 0.7245 MB / 0.5242 GB, free: 6.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.574e-05/0.2732, allocations: 27.11 kB / 0.5243 GB, free: 6.078 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2732, allocations: 0 / 0.5243 GB, free: 6.078 MB / 346.7 MB Notification: Performance of Templates: time 0.004131/0.2773, allocations: 2.513 MB / 0.5267 GB, free: 5.812 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test5/Test5.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches