Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.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.Test1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1") translateModel(ModelicaTest.Tables.CombiTimeTable.Test1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009252/0.0009249, allocations: 203 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.6 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.0007657/0.0007657, allocations: 100.6 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.177/0.177, allocations: 44.84 MB / 392 MB, free: 9.348 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002283/0.0002283, allocations: 12 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0957/0.09594, allocations: 62.95 MB / 0.5153 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test1): time 0.001905/0.09789, allocations: 1.428 MB / 0.5167 GB, free: 1.336 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.09926, allocations: 0.9441 MB / 0.5176 GB, free: 396 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.614e-05/0.09935, allocations: 3.938 kB / 0.5177 GB, free: 392 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002653/0.09962, allocations: 43.88 kB / 0.5177 GB, free: 348 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002516/0.09988, allocations: 79.72 kB / 0.5178 GB, free: 268 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.1001, allocations: 95.77 kB / 0.5179 GB, free: 172 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001407/0.1003, allocations: 103.7 kB / 0.518 GB, free: 68 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.447e-05/0.1004, allocations: 4 kB / 0.518 GB, free: 64 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.532e-05/0.1005, allocations: 43.78 kB / 0.518 GB, free: 20 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1965/0.297, allocations: 24.69 kB / 0.518 GB, free: 9.855 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.743e-05/0.2971, allocations: 1.75 kB / 0.518 GB, free: 9.855 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002126/0.2973, allocations: 39.83 kB / 0.5181 GB, free: 9.855 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.688e-05/0.2974, allocations: 24.62 kB / 0.5181 GB, free: 9.855 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.082e-05/0.2974, allocations: 45.11 kB / 0.5181 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.2977, allocations: 99.39 kB / 0.5182 GB, free: 9.824 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2977, allocations: 1.062 kB / 0.5182 GB, free: 9.824 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2977, allocations: 0.6875 kB / 0.5182 GB, free: 9.824 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.2977, allocations: 3.281 kB / 0.5182 GB, free: 9.824 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.0005857/0.2983, allocations: 426.3 kB / 0.5186 GB, free: 9.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.2984, allocations: 8.938 kB / 0.5187 GB, free: 9.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.268e-05/0.2984, allocations: 14.72 kB / 0.5187 GB, free: 9.422 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.2987, allocations: 221.2 kB / 0.5189 GB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.2987, allocations: 6.562 kB / 0.5189 GB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.425e-05/0.2988, allocations: 1.906 kB / 0.5189 GB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.2989, allocations: 58.42 kB / 0.5189 GB, free: 9.176 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.299, allocations: 5.172 kB / 0.5189 GB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.299, allocations: 2.578 kB / 0.5189 GB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.299, allocations: 0.9062 kB / 0.5189 GB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.2991, allocations: 18.66 kB / 0.519 GB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004033/0.2995, allocations: 303.3 kB / 0.5193 GB, free: 8.902 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.2997, allocations: 55.12 kB / 0.5193 GB, free: 8.879 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.442e-05/0.2999, allocations: 21.11 kB / 0.5193 GB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.2999, allocations: 0.8125 kB / 0.5193 GB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002091/0.3001, allocations: 73.11 kB / 0.5194 GB, free: 8.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.844e-06/0.3001, allocations: 0 / 0.5194 GB, free: 8.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007527/0.3009, allocations: 180.5 kB / 0.5196 GB, free: 8.766 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.3009, allocations: 55.33 kB / 0.5196 GB, free: 8.703 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004386/0.3014, allocations: 272.7 kB / 0.5199 GB, free: 8.598 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.3014, allocations: 29.53 kB / 0.5199 GB, free: 8.566 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.7e-05/0.3015, allocations: 113.7 kB / 0.52 GB, free: 8.484 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.806e-05/0.3016, allocations: 27.56 kB / 0.52 GB, free: 8.469 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/0.3016, allocations: 1.688 kB / 0.52 GB, free: 8.469 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.258e-05/0.3017, allocations: 333.4 kB / 0.5204 GB, free: 8.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.356e-05/0.3018, allocations: 19.42 kB / 0.5204 GB, free: 8.152 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.436e-05/0.3019, allocations: 42.36 kB / 0.5204 GB, free: 8.137 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.145e-05/0.302, allocations: 21.2 kB / 0.5204 GB, free: 8.137 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.302, allocations: 0 / 0.5204 GB, free: 8.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002513/0.3022, allocations: 106 kB / 0.5205 GB, free: 8.098 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.3023, allocations: 10.97 kB / 0.5206 GB, free: 8.094 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.3023, allocations: 3.938 kB / 0.5206 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.3023, allocations: 1.062 kB / 0.5206 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.3024, allocations: 16.09 kB / 0.5206 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.3025, allocations: 1.828 kB / 0.5206 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.009e-05/0.3025, allocations: 2.703 kB / 0.5206 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.3026, allocations: 9.516 kB / 0.5206 GB, free: 8.086 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 0.0001205/0.3027, allocations: 134 kB / 0.5207 GB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/0.3027, allocations: 19.22 kB / 0.5207 GB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.317e-05/0.3028, allocations: 23.64 kB / 0.5208 GB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.3028, allocations: 1 kB / 0.5208 GB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.3028, allocations: 2.125 kB / 0.5208 GB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.3028, allocations: 3.891 kB / 0.5208 GB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005319/0.3034, allocations: 409.3 kB / 0.5212 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3034, allocations: 0 / 0.5212 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.782e-05/0.3034, allocations: 8.562 kB / 0.5212 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.3035, allocations: 5.188 kB / 0.5212 GB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.3035, allocations: 5.969 kB / 0.5212 GB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.3035, allocations: 0 / 0.5212 GB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3035, allocations: 5.453 kB / 0.5212 GB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.3038, allocations: 205.1 kB / 0.5214 GB, free: 7.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.624e-05/0.3038, allocations: 94.52 kB / 0.5215 GB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.3039, allocations: 10.45 kB / 0.5215 GB, free: 7.395 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.304, allocations: 7.375 kB / 0.5215 GB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.742e-05/0.304, allocations: 9.453 kB / 0.5215 GB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.3041, allocations: 4.531 kB / 0.5215 GB, free: 7.387 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002191/0.3043, allocations: 203.7 kB / 0.5217 GB, free: 7.312 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3043, allocations: 0 / 0.5217 GB, free: 7.312 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004004/0.3047, allocations: 22.25 kB / 0.5217 GB, free: 7.312 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.001232/0.306, allocations: 471.3 kB / 0.5222 GB, free: 7.086 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002584/0.3062, allocations: 58.34 kB / 0.5222 GB, free: 7.086 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3063, allocations: 0.625 kB / 0.5222 GB, free: 7.086 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.3064, allocations: 29.61 kB / 0.5222 GB, free: 7.086 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.3068, allocations: 35.03 kB / 0.5223 GB, free: 7.078 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006064/0.3074, allocations: 341.3 kB / 0.5226 GB, free: 6.859 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.3076, allocations: 0.7173 MB / 0.5233 GB, free: 6.164 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.629e-05/0.3077, allocations: 20.05 kB / 0.5233 GB, free: 6.156 MB / 346.7 MB Notification: Performance of SimCode: time 3.2e-07/0.3077, allocations: 0 / 0.5233 GB, free: 6.156 MB / 346.7 MB Notification: Performance of Templates: time 0.005045/0.3127, allocations: 2.087 MB / 0.5254 GB, free: 5.938 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test1/Test1.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches