Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.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.Test4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|d2_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4") translateModel(ModelicaTest.Tables.CombiTimeTable.Test4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y|d2_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009116/0.0009116, allocations: 198.2 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.258/1.258, allocations: 226.5 MB / 243.1 MB, free: 14.31 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000749/0.000749, allocations: 103.1 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.1887/0.1887, allocations: 44.84 MB / 392 MB, free: 9.359 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002465/0.0002466, allocations: 8 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09019/0.09045, allocations: 62.96 MB / 0.5153 GB, free: 2.785 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test4): time 0.002111/0.09262, allocations: 1.435 MB / 0.5167 GB, free: 1.332 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.09411, allocations: 0.9519 MB / 0.5177 GB, free: 384 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.911e-05/0.09424, allocations: 0 / 0.5177 GB, free: 384 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003348/0.09458, allocations: 79.75 kB / 0.5177 GB, free: 304 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002906/0.09489, allocations: 95.7 kB / 0.5178 GB, free: 208 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003047/0.0952, allocations: 94.39 kB / 0.5179 GB, free: 116 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.0954, allocations: 103.7 kB / 0.518 GB, free: 12 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1742/0.2696, allocations: 15.34 kB / 0.518 GB, free: 9.867 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.2698, allocations: 45.44 kB / 0.5181 GB, free: 9.867 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.27, allocations: 51.41 kB / 0.5181 GB, free: 9.867 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.27, allocations: 2.031 kB / 0.5181 GB, free: 9.867 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.2702, allocations: 48.53 kB / 0.5182 GB, free: 9.867 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.186e-05/0.2702, allocations: 26.39 kB / 0.5182 GB, free: 9.867 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.099e-05/0.2703, allocations: 40.02 kB / 0.5182 GB, free: 9.836 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001943/0.2705, allocations: 108.2 kB / 0.5183 GB, free: 9.836 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2705, allocations: 0.6562 kB / 0.5183 GB, free: 9.836 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2705, allocations: 0.625 kB / 0.5183 GB, free: 9.836 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.2705, allocations: 0 / 0.5183 GB, free: 9.836 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004539/0.271, allocations: 415 kB / 0.5187 GB, free: 9.445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.271, allocations: 12.17 kB / 0.5188 GB, free: 9.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.369e-05/0.2711, allocations: 13.84 kB / 0.5188 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/0.2713, allocations: 217.9 kB / 0.519 GB, free: 9.227 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.2713, allocations: 5.688 kB / 0.519 GB, free: 9.227 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.2713, allocations: 4.75 kB / 0.519 GB, free: 9.227 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001626/0.2715, allocations: 58.47 kB / 0.519 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.2715, allocations: 1.406 kB / 0.519 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.2715, allocations: 1.297 kB / 0.519 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.2715, allocations: 4.469 kB / 0.519 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.702e-05/0.2716, allocations: 22.7 kB / 0.5191 GB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003902/0.272, allocations: 306.9 kB / 0.5194 GB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002441/0.2723, allocations: 61.94 kB / 0.5194 GB, free: 8.902 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.885e-05/0.2724, allocations: 25.53 kB / 0.5194 GB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.2724, allocations: 3.234 kB / 0.5194 GB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001695/0.2726, allocations: 75.39 kB / 0.5195 GB, free: 8.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.2726, allocations: 0 / 0.5195 GB, free: 8.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007331/0.2733, allocations: 248 kB / 0.5198 GB, free: 8.781 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/0.2734, allocations: 61.94 kB / 0.5198 GB, free: 8.711 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002075/0.2736, allocations: 218.1 kB / 0.52 GB, free: 8.602 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.2736, allocations: 28.98 kB / 0.52 GB, free: 8.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.371e-05/0.2736, allocations: 107.6 kB / 0.5202 GB, free: 8.488 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.021e-05/0.2737, allocations: 40.05 kB / 0.5202 GB, free: 8.465 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-06/0.2737, allocations: 1.344 kB / 0.5202 GB, free: 8.465 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.126e-05/0.2737, allocations: 324.6 kB / 0.5205 GB, free: 8.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.131e-05/0.2738, allocations: 29.34 kB / 0.5205 GB, free: 8.152 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.36e-05/0.2739, allocations: 49.14 kB / 0.5206 GB, free: 8.133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.648e-05/0.274, allocations: 35.94 kB / 0.5206 GB, free: 8.133 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.274, allocations: 0 / 0.5206 GB, free: 8.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001892/0.2742, allocations: 127 kB / 0.5207 GB, free: 8.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.2742, allocations: 6.875 kB / 0.5207 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.2742, allocations: 2.719 kB / 0.5207 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.2742, allocations: 2.609 kB / 0.5207 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.005e-05/0.2743, allocations: 22.8 kB / 0.5208 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.2743, allocations: 9.234 kB / 0.5208 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.743e-05/0.2744, allocations: 4.688 kB / 0.5208 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.2744, allocations: 6.5 kB / 0.5208 GB, free: 8.082 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 (13): * Single equations (assignments): 13 * 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 7.602e-05/0.2745, allocations: 130.2 kB / 0.5209 GB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.2745, allocations: 11.22 kB / 0.5209 GB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.582e-05/0.2745, allocations: 22.12 kB / 0.5209 GB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2745, allocations: 1.219 kB / 0.5209 GB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2746, allocations: 0 / 0.5209 GB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2746, allocations: 5.609 kB / 0.5209 GB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004247/0.275, allocations: 456.2 kB / 0.5214 GB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.275, allocations: 0.75 kB / 0.5214 GB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.725e-05/0.2751, allocations: 13.31 kB / 0.5214 GB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.2751, allocations: 2.875 kB / 0.5214 GB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.2751, allocations: 10.55 kB / 0.5214 GB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.2751, allocations: 4.75 kB / 0.5214 GB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2751, allocations: 5.562 kB / 0.5214 GB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002058/0.2753, allocations: 234 kB / 0.5216 GB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.867e-05/0.2753, allocations: 87.31 kB / 0.5217 GB, free: 7.379 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.2754, allocations: 4.781 kB / 0.5217 GB, free: 7.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.285e-05/0.2755, allocations: 8.188 kB / 0.5217 GB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.397e-05/0.2755, allocations: 17.12 kB / 0.5218 GB, free: 7.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.2755, allocations: 5.5 kB / 0.5218 GB, free: 7.371 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000131/0.2757, allocations: 166.1 kB / 0.5219 GB, free: 7.297 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2757, allocations: 0 / 0.5219 GB, free: 7.297 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.2759, allocations: 34.48 kB / 0.5219 GB, free: 7.289 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 (11): * Single equations (assignments): 9 * 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.0009152/0.2768, allocations: 0.5114 MB / 0.5224 GB, free: 7.043 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001779/0.277, allocations: 79.25 kB / 0.5225 GB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.277, allocations: 0 / 0.5225 GB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.422e-05/0.2771, allocations: 42.12 kB / 0.5226 GB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.2774, allocations: 28.48 kB / 0.5226 GB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000465/0.2779, allocations: 322.5 kB / 0.5229 GB, free: 6.82 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001414/0.278, allocations: 0.7098 MB / 0.5236 GB, free: 6.125 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.986e-05/0.2781, allocations: 27.64 kB / 0.5236 GB, free: 6.113 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2781, allocations: 0 / 0.5236 GB, free: 6.113 MB / 346.7 MB Notification: Performance of Templates: time 0.004141/0.2822, allocations: 2.228 MB / 0.5258 GB, free: 5.879 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test4/Test4.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches