Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.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.Test21,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21") translateModel(ModelicaTest.Tables.CombiTimeTable.Test21,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 202.3 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 226.5 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007465/0.0007464, allocations: 88.62 kB / 295.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1769/0.1769, allocations: 44.84 MB / 392 MB, free: 9.344 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002634/0.0002634, allocations: 16 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09482/0.0951, allocations: 62.95 MB / 0.5153 GB, free: 2.777 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test21): time 0.001844/0.09698, allocations: 1.428 MB / 0.5167 GB, free: 1.332 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.09841, allocations: 0.9363 MB / 0.5176 GB, free: 400 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.325e-05/0.09851, allocations: 3.938 kB / 0.5176 GB, free: 396 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002764/0.09879, allocations: 39.89 kB / 0.5177 GB, free: 356 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002412/0.09905, allocations: 79.67 kB / 0.5178 GB, free: 276 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.09932, allocations: 91.83 kB / 0.5178 GB, free: 184 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.09947, allocations: 91.69 kB / 0.5179 GB, free: 92 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.622e-05/0.09955, allocations: 15.92 kB / 0.5179 GB, free: 76 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.726e-05/0.09963, allocations: 43.77 kB / 0.518 GB, free: 32 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.07e-05/0.0997, allocations: 27.86 kB / 0.518 GB, free: 4 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.1772/0.2769, allocations: 4 kB / 0.518 GB, free: 0 / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001747/0.2771, allocations: 30.33 kB / 0.518 GB, free: 9.883 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.885e-05/0.2771, allocations: 19.02 kB / 0.5181 GB, free: 9.883 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.574e-05/0.2772, allocations: 38.02 kB / 0.5181 GB, free: 9.852 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.2774, allocations: 90.64 kB / 0.5182 GB, free: 9.852 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2774, allocations: 0.7812 kB / 0.5182 GB, free: 9.852 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2774, allocations: 0 / 0.5182 GB, free: 9.852 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.2774, allocations: 0.625 kB / 0.5182 GB, free: 9.852 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.0004459/0.2779, allocations: 398.5 kB / 0.5186 GB, free: 9.477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.2779, allocations: 11.64 kB / 0.5186 GB, free: 9.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.332e-05/0.278, allocations: 13.66 kB / 0.5186 GB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.2782, allocations: 209.1 kB / 0.5188 GB, free: 9.262 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.2782, allocations: 4.375 kB / 0.5188 GB, free: 9.262 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.2782, allocations: 6.516 kB / 0.5188 GB, free: 9.262 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001436/0.2784, allocations: 51.56 kB / 0.5189 GB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2784, allocations: 4.281 kB / 0.5189 GB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.2784, allocations: 2.328 kB / 0.5189 GB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.2784, allocations: 1.203 kB / 0.5189 GB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.513e-05/0.2785, allocations: 19.09 kB / 0.5189 GB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003715/0.2789, allocations: 289.9 kB / 0.5192 GB, free: 8.961 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001798/0.2791, allocations: 59.5 kB / 0.5192 GB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.333e-05/0.2792, allocations: 21.05 kB / 0.5192 GB, free: 8.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.2792, allocations: 6.859 kB / 0.5192 GB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.2794, allocations: 68.47 kB / 0.5193 GB, free: 8.875 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.2794, allocations: 0.9688 kB / 0.5193 GB, free: 8.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.000576/0.28, allocations: 170.6 kB / 0.5195 GB, free: 8.828 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.28, allocations: 52.62 kB / 0.5195 GB, free: 8.766 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.2802, allocations: 201.5 kB / 0.5197 GB, free: 8.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.2803, allocations: 33.06 kB / 0.5197 GB, free: 8.625 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.769e-05/0.2803, allocations: 100.6 kB / 0.5198 GB, free: 8.543 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.465e-05/0.2804, allocations: 34.05 kB / 0.5199 GB, free: 8.527 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.738e-06/0.2804, allocations: 0.625 kB / 0.5199 GB, free: 8.527 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.995e-05/0.2804, allocations: 324.4 kB / 0.5202 GB, free: 8.215 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.356e-05/0.2805, allocations: 21.25 kB / 0.5202 GB, free: 8.215 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.876e-05/0.2806, allocations: 40.66 kB / 0.5202 GB, free: 8.199 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.044e-05/0.2806, allocations: 27.44 kB / 0.5203 GB, free: 8.195 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.2807, allocations: 0 / 0.5203 GB, free: 8.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001831/0.2808, allocations: 101.3 kB / 0.5204 GB, free: 8.156 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2809, allocations: 4.5 kB / 0.5204 GB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2809, allocations: 1.531 kB / 0.5204 GB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.2809, allocations: 1.375 kB / 0.5204 GB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.534e-05/0.281, allocations: 19.8 kB / 0.5204 GB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.281, allocations: 1.062 kB / 0.5204 GB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.089e-05/0.2811, allocations: 5.422 kB / 0.5204 GB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.2811, allocations: 15.64 kB / 0.5204 GB, free: 8.141 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 (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.538e-05/0.2812, allocations: 127.3 kB / 0.5205 GB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.077e-05/0.2812, allocations: 9.812 kB / 0.5205 GB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.744e-05/0.2813, allocations: 18.05 kB / 0.5206 GB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.2813, allocations: 0.5938 kB / 0.5206 GB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.2813, allocations: 0.5 kB / 0.5206 GB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2813, allocations: 1.203 kB / 0.5206 GB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003613/0.2816, allocations: 400.1 kB / 0.5209 GB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2817, allocations: 0 / 0.5209 GB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.322e-05/0.2817, allocations: 9.578 kB / 0.5209 GB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.2817, allocations: 0.9375 kB / 0.521 GB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.2817, allocations: 7.188 kB / 0.521 GB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.2817, allocations: 0.9375 kB / 0.521 GB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.2817, allocations: 7.703 kB / 0.521 GB, free: 7.711 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001774/0.2819, allocations: 207.6 kB / 0.5212 GB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.876e-05/0.282, allocations: 90.14 kB / 0.5212 GB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.282, allocations: 2.609 kB / 0.5213 GB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.213e-05/0.2821, allocations: 4.203 kB / 0.5213 GB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.299e-05/0.2821, allocations: 13.91 kB / 0.5213 GB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.2821, allocations: 4.109 kB / 0.5213 GB, free: 7.461 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001072/0.2822, allocations: 144.9 kB / 0.5214 GB, free: 7.387 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2822, allocations: 0 / 0.5214 GB, free: 7.387 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002471/0.2825, allocations: 30.94 kB / 0.5214 GB, free: 7.379 MB / 346.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.0009628/0.2835, allocations: 452.5 kB / 0.5219 GB, free: 7.172 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002033/0.2837, allocations: 64.91 kB / 0.5219 GB, free: 7.164 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2837, allocations: 0 / 0.5219 GB, free: 7.164 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.104e-05/0.2838, allocations: 32.47 kB / 0.522 GB, free: 7.164 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.2841, allocations: 28.58 kB / 0.522 GB, free: 7.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003954/0.2845, allocations: 276.6 kB / 0.5223 GB, free: 6.961 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.2847, allocations: 0.7035 MB / 0.5229 GB, free: 6.266 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/0.2847, allocations: 19.94 kB / 0.523 GB, free: 6.258 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2847, allocations: 0 / 0.523 GB, free: 6.258 MB / 346.7 MB Notification: Performance of Templates: time 0.003827/0.2885, allocations: 1.941 MB / 0.5249 GB, free: 6.062 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test21/Test21.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches