Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3.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.Test3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3") translateModel(ModelicaTest.Tables.CombiTimeTable.Test3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009058/0.0009059, allocations: 200.9 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.272/1.272, allocations: 226.6 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.0007391/0.0007391, allocations: 97.69 kB / 295.1 MB, free: 10.05 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.83 MB / 391.9 MB, free: 9.332 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002338/0.0002338, allocations: 11.98 kB / 464.8 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09745, allocations: 62.96 MB / 0.5153 GB, free: 2.754 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test3): time 0.001874/0.09936, allocations: 1.427 MB / 0.5167 GB, free: 1.309 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001338/0.1007, allocations: 0.9324 MB / 0.5176 GB, free: 380 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.999e-05/0.1008, allocations: 3.938 kB / 0.5176 GB, free: 376 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002351/0.1011, allocations: 35.84 kB / 0.5177 GB, free: 340 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002553/0.1013, allocations: 67.73 kB / 0.5177 GB, free: 272 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003181/0.1017, allocations: 102 kB / 0.5178 GB, free: 172 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001698/0.1019, allocations: 91.69 kB / 0.5179 GB, free: 80 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.789e-05/0.1019, allocations: 11.98 kB / 0.5179 GB, free: 68 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.535e-05/0.102, allocations: 35.8 kB / 0.518 GB, free: 32 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.28e-05/0.1021, allocations: 23.86 kB / 0.518 GB, free: 8 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.1021, allocations: 4 kB / 0.518 GB, free: 4 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.3079, allocations: 35.55 kB / 0.518 GB, free: 9.848 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.2e-05/0.3079, allocations: 14.08 kB / 0.5181 GB, free: 9.848 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.902e-05/0.308, allocations: 37.19 kB / 0.5181 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001716/0.3082, allocations: 87.19 kB / 0.5182 GB, free: 9.816 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3082, allocations: 0 / 0.5182 GB, free: 9.816 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3082, allocations: 1.562 kB / 0.5182 GB, free: 9.816 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.387e-06/0.3082, allocations: 0.5625 kB / 0.5182 GB, free: 9.816 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.0004094/0.3086, allocations: 397.9 kB / 0.5186 GB, free: 9.441 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.3087, allocations: 9.719 kB / 0.5186 GB, free: 9.441 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.484e-05/0.3087, allocations: 8.562 kB / 0.5186 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.3089, allocations: 206.6 kB / 0.5188 GB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.3089, allocations: 3.5 kB / 0.5188 GB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.791e-05/0.3089, allocations: 4.828 kB / 0.5188 GB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.309, allocations: 56.47 kB / 0.5188 GB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.3091, allocations: 0 / 0.5188 GB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.3091, allocations: 1.594 kB / 0.5188 GB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3091, allocations: 5.156 kB / 0.5188 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.988e-05/0.3092, allocations: 19.08 kB / 0.5189 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002708/0.3094, allocations: 287.4 kB / 0.5191 GB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000148/0.3096, allocations: 58.62 kB / 0.5192 GB, free: 8.902 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.41e-05/0.3097, allocations: 23.28 kB / 0.5192 GB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.3097, allocations: 2.719 kB / 0.5192 GB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001448/0.3098, allocations: 65.25 kB / 0.5193 GB, free: 8.844 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.283e-06/0.3098, allocations: 0 / 0.5193 GB, free: 8.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004708/0.3103, allocations: 170.8 kB / 0.5194 GB, free: 8.797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.909e-05/0.3103, allocations: 53.06 kB / 0.5195 GB, free: 8.734 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.3105, allocations: 176.6 kB / 0.5197 GB, free: 8.629 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.03e-05/0.3105, allocations: 32.45 kB / 0.5197 GB, free: 8.594 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.613e-05/0.3105, allocations: 98.47 kB / 0.5198 GB, free: 8.512 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.385e-05/0.3106, allocations: 25.03 kB / 0.5198 GB, free: 8.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-06/0.3106, allocations: 1.844 kB / 0.5198 GB, free: 8.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.267e-05/0.3106, allocations: 325.6 kB / 0.5201 GB, free: 8.188 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.704e-05/0.3107, allocations: 20.19 kB / 0.5201 GB, free: 8.188 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.948e-05/0.3108, allocations: 39.05 kB / 0.5202 GB, free: 8.172 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.407e-05/0.3108, allocations: 27.92 kB / 0.5202 GB, free: 8.168 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.3108, allocations: 0 / 0.5202 GB, free: 8.168 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001576/0.311, allocations: 99.3 kB / 0.5203 GB, free: 8.133 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.311, allocations: 9.859 kB / 0.5203 GB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-06/0.311, allocations: 0 / 0.5203 GB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.999e-06/0.311, allocations: 1 kB / 0.5203 GB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.878e-05/0.3111, allocations: 15.8 kB / 0.5203 GB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.3111, allocations: 1.25 kB / 0.5203 GB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.627e-05/0.3112, allocations: 9.078 kB / 0.5203 GB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.3112, allocations: 7.188 kB / 0.5203 GB, free: 8.125 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 6.35e-05/0.3113, allocations: 124.4 kB / 0.5205 GB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.78e-05/0.3113, allocations: 10.05 kB / 0.5205 GB, free: 8.008 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.876e-05/0.3113, allocations: 19.34 kB / 0.5205 GB, free: 8.004 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.3113, allocations: 3.781 kB / 0.5205 GB, free: 8.004 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.3113, allocations: 0.7812 kB / 0.5205 GB, free: 8.004 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3114, allocations: 1.172 kB / 0.5205 GB, free: 8.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003358/0.3117, allocations: 398.7 kB / 0.5209 GB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3117, allocations: 2.422 kB / 0.5209 GB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.177e-05/0.3117, allocations: 12.5 kB / 0.5209 GB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.3118, allocations: 1.031 kB / 0.5209 GB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.3118, allocations: 1.812 kB / 0.5209 GB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.3118, allocations: 1.641 kB / 0.5209 GB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3118, allocations: 9.125 kB / 0.5209 GB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001669/0.312, allocations: 202.5 kB / 0.5211 GB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.817e-05/0.312, allocations: 90.28 kB / 0.5212 GB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.312, allocations: 2.922 kB / 0.5212 GB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.81e-05/0.3121, allocations: 2.797 kB / 0.5212 GB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.166e-05/0.3121, allocations: 13.8 kB / 0.5212 GB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.3121, allocations: 4.281 kB / 0.5212 GB, free: 7.438 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.909e-05/0.3122, allocations: 127.2 kB / 0.5213 GB, free: 7.363 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3122, allocations: 4 kB / 0.5213 GB, free: 7.359 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002239/0.3125, allocations: 22.09 kB / 0.5213 GB, free: 7.359 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.0008269/0.3133, allocations: 464 kB / 0.5218 GB, free: 7.152 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001514/0.3135, allocations: 59.12 kB / 0.5218 GB, free: 7.148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.3135, allocations: 0 / 0.5218 GB, free: 7.148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.464e-05/0.3135, allocations: 29.97 kB / 0.5219 GB, free: 7.148 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.3139, allocations: 30.09 kB / 0.5219 GB, free: 7.145 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003584/0.3142, allocations: 252.4 kB / 0.5221 GB, free: 6.949 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.3143, allocations: 0.6993 MB / 0.5228 GB, free: 6.254 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.362e-05/0.3144, allocations: 18.17 kB / 0.5228 GB, free: 6.246 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3144, allocations: 0 / 0.5228 GB, free: 6.246 MB / 346.7 MB Notification: Performance of Templates: time 0.003563/0.318, allocations: 1.903 MB / 0.5247 GB, free: 6.051 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test3/Test3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches