Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.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.Test6,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6") translateModel(ModelicaTest.Tables.CombiTimeTable.Test6,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009988/0.0009988, allocations: 200.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.272/1.272, allocations: 226.6 MB / 243.1 MB, free: 14.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007797/0.0007798, allocations: 102.7 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1872/0.1872, allocations: 44.83 MB / 392 MB, free: 9.309 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002359/0.0002359, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09437/0.09462, allocations: 62.95 MB / 0.5153 GB, free: 2.762 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test6): time 0.001875/0.09653, allocations: 1.428 MB / 0.5167 GB, free: 1.316 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.09784, allocations: 0.9402 MB / 0.5176 GB, free: 380 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.318e-05/0.09792, allocations: 3.938 kB / 0.5176 GB, free: 376 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002619/0.09819, allocations: 47.86 kB / 0.5177 GB, free: 328 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002051/0.09841, allocations: 79.67 kB / 0.5178 GB, free: 248 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.09865, allocations: 98.58 kB / 0.5179 GB, free: 152 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001323/0.09879, allocations: 103.6 kB / 0.518 GB, free: 48 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.711e-05/0.09888, allocations: 7.984 kB / 0.518 GB, free: 40 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1765/0.2753, allocations: 41.61 kB / 0.518 GB, free: 9.855 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.2755, allocations: 29.39 kB / 0.518 GB, free: 9.855 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.2755, allocations: 1.562 kB / 0.518 GB, free: 9.855 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.2757, allocations: 39.77 kB / 0.5181 GB, free: 9.855 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.76e-05/0.2757, allocations: 28.86 kB / 0.5181 GB, free: 9.855 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.513e-05/0.2758, allocations: 41.95 kB / 0.5181 GB, free: 9.824 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.276, allocations: 100.8 kB / 0.5182 GB, free: 9.824 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.276, allocations: 0.5 kB / 0.5182 GB, free: 9.824 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.276, allocations: 0.5312 kB / 0.5182 GB, free: 9.824 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.276, allocations: 2 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.0004795/0.2765, allocations: 434.5 kB / 0.5187 GB, free: 9.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.2765, allocations: 9.281 kB / 0.5187 GB, free: 9.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.39e-05/0.2766, allocations: 16.42 kB / 0.5187 GB, free: 9.422 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002058/0.2768, allocations: 220.2 kB / 0.5189 GB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.2768, allocations: 5.875 kB / 0.5189 GB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.2769, allocations: 2.781 kB / 0.5189 GB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.277, allocations: 56.2 kB / 0.519 GB, free: 9.176 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.277, allocations: 0.5156 kB / 0.519 GB, free: 9.176 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.277, allocations: 1.891 kB / 0.519 GB, free: 9.176 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2771, allocations: 1.188 kB / 0.519 GB, free: 9.176 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.402e-05/0.2771, allocations: 19.03 kB / 0.519 GB, free: 9.176 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003172/0.2775, allocations: 304.8 kB / 0.5193 GB, free: 8.906 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.2776, allocations: 55.94 kB / 0.5193 GB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.389e-05/0.2777, allocations: 20.67 kB / 0.5193 GB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.2777, allocations: 1.844 kB / 0.5193 GB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001554/0.2779, allocations: 72.2 kB / 0.5194 GB, free: 8.824 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.2779, allocations: 0 / 0.5194 GB, free: 8.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005095/0.2784, allocations: 180.9 kB / 0.5196 GB, free: 8.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/0.2784, allocations: 55.64 kB / 0.5196 GB, free: 8.707 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.2787, allocations: 291.7 kB / 0.5199 GB, free: 8.598 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.004e-05/0.2787, allocations: 27.11 kB / 0.5199 GB, free: 8.566 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.423e-05/0.2788, allocations: 120.9 kB / 0.5201 GB, free: 8.477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.629e-05/0.2788, allocations: 25.94 kB / 0.5201 GB, free: 8.465 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/0.2788, allocations: 1.312 kB / 0.5201 GB, free: 8.465 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.058e-05/0.2789, allocations: 329.6 kB / 0.5204 GB, free: 8.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.694e-05/0.279, allocations: 19.56 kB / 0.5204 GB, free: 8.152 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.58e-05/0.279, allocations: 37.45 kB / 0.5204 GB, free: 8.137 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.397e-05/0.2791, allocations: 24.19 kB / 0.5205 GB, free: 8.137 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.2791, allocations: 0 / 0.5205 GB, free: 8.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001755/0.2793, allocations: 115.2 kB / 0.5206 GB, free: 8.086 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.2793, allocations: 12.8 kB / 0.5206 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2793, allocations: 0.5938 kB / 0.5206 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.2793, allocations: 1.094 kB / 0.5206 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.819e-05/0.2794, allocations: 19.73 kB / 0.5206 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.2794, allocations: 1.375 kB / 0.5206 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.018e-05/0.2795, allocations: 5.016 kB / 0.5206 GB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.2795, allocations: 7.109 kB / 0.5206 GB, free: 8.078 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 9.127e-05/0.2796, allocations: 140.5 kB / 0.5208 GB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.197e-05/0.2796, allocations: 17.14 kB / 0.5208 GB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.848e-05/0.2797, allocations: 21.8 kB / 0.5208 GB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2797, allocations: 1.594 kB / 0.5208 GB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.2797, allocations: 1.25 kB / 0.5208 GB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2797, allocations: 3.938 kB / 0.5208 GB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003643/0.2801, allocations: 410.4 kB / 0.5212 GB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2801, allocations: 1.547 kB / 0.5212 GB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.341e-05/0.2801, allocations: 13.52 kB / 0.5212 GB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2801, allocations: 0 / 0.5212 GB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.2801, allocations: 6.391 kB / 0.5212 GB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2802, allocations: 1.906 kB / 0.5212 GB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2802, allocations: 4.828 kB / 0.5212 GB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001845/0.2803, allocations: 204.8 kB / 0.5214 GB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.32e-05/0.2804, allocations: 95.55 kB / 0.5215 GB, free: 7.391 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/0.2804, allocations: 6.078 kB / 0.5215 GB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.14e-05/0.2805, allocations: 3.547 kB / 0.5215 GB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.415e-05/0.2805, allocations: 10 kB / 0.5215 GB, free: 7.383 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.2806, allocations: 4.016 kB / 0.5215 GB, free: 7.383 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001687/0.2807, allocations: 212.4 kB / 0.5217 GB, free: 7.309 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2807, allocations: 0 / 0.5217 GB, free: 7.309 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002353/0.281, allocations: 26.08 kB / 0.5218 GB, free: 7.305 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.0008423/0.2818, allocations: 473 kB / 0.5222 GB, free: 7.082 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001562/0.282, allocations: 55.89 kB / 0.5223 GB, free: 7.082 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.282, allocations: 1.125 kB / 0.5223 GB, free: 7.082 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.669e-05/0.2821, allocations: 34.89 kB / 0.5223 GB, free: 7.078 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.2824, allocations: 29.28 kB / 0.5223 GB, free: 7.074 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004408/0.2828, allocations: 352.7 kB / 0.5227 GB, free: 6.855 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/0.283, allocations: 0.7245 MB / 0.5234 GB, free: 6.156 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.229e-05/0.283, allocations: 17.19 kB / 0.5234 GB, free: 6.148 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.283, allocations: 0 / 0.5234 GB, free: 6.148 MB / 346.7 MB Notification: Performance of Templates: time 0.003732/0.2868, allocations: 2.111 MB / 0.5254 GB, free: 5.926 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test6/Test6.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches