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.0009957/0.0009959, allocations: 190.4 kB / 16.78 MB, free: 4.914 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 226.5 MB / 244.1 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007658/0.0007658, allocations: 104.3 kB / 296.1 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3863/0.3863, allocations: 44.82 MB / 392.9 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003043/0.0003045, allocations: 15.98 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4296/0.4299, allocations: 62.96 MB / 0.5165 GB, free: 37.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1246/0.5546, allocations: 90.7 MB / 0.6051 GB, free: 14.71 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.5549, allocations: 75.97 kB / 0.6051 GB, free: 14.63 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01863/0.5736, allocations: 6.856 MB / 0.6118 GB, free: 7.766 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5736, allocations: 0 / 0.6118 GB, free: 7.766 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.5737, allocations: 0 / 0.6118 GB, free: 7.766 MB / 426.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.0006437/0.5743, allocations: 466.7 kB / 0.6123 GB, free: 7.258 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.5744, allocations: 8.031 kB / 0.6123 GB, free: 7.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.187e-05/0.5744, allocations: 12.84 kB / 0.6123 GB, free: 7.238 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.5747, allocations: 238.4 kB / 0.6125 GB, free: 6.969 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.5748, allocations: 384 / 0.6125 GB, free: 6.969 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.867e-05/0.5748, allocations: 4.375 kB / 0.6125 GB, free: 6.965 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001482/0.575, allocations: 58.23 kB / 0.6126 GB, free: 6.902 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.575, allocations: 4.188 kB / 0.6126 GB, free: 6.898 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.575, allocations: 7.938 kB / 0.6126 GB, free: 6.891 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.575, allocations: 3.938 kB / 0.6126 GB, free: 6.887 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.827e-05/0.5751, allocations: 27.97 kB / 0.6126 GB, free: 6.859 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004321/0.5755, allocations: 300.8 kB / 0.6129 GB, free: 6.516 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.5758, allocations: 70.42 kB / 0.613 GB, free: 6.438 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.721e-05/0.5759, allocations: 36.91 kB / 0.613 GB, free: 6.398 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.197e-05/0.5759, allocations: 0 / 0.613 GB, free: 6.398 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001482/0.576, allocations: 67.39 kB / 0.6131 GB, free: 6.32 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.5761, allocations: 0 / 0.6131 GB, free: 6.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008058/0.5769, allocations: 245.1 kB / 0.6133 GB, free: 6.074 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.5769, allocations: 55.41 kB / 0.6134 GB, free: 6.008 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/0.5772, allocations: 224.2 kB / 0.6136 GB, free: 5.773 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.5772, allocations: 29.7 kB / 0.6136 GB, free: 5.738 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.772e-05/0.5772, allocations: 108.1 kB / 0.6137 GB, free: 5.629 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.134e-05/0.5773, allocations: 31.5 kB / 0.6137 GB, free: 5.598 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.534e-06/0.5773, allocations: 8 kB / 0.6137 GB, free: 5.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.5775, allocations: 330.8 kB / 0.6141 GB, free: 5.258 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.671e-05/0.5775, allocations: 27.98 kB / 0.6141 GB, free: 5.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.922e-05/0.5776, allocations: 53.64 kB / 0.6141 GB, free: 5.172 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.5778, allocations: 79.34 kB / 0.6142 GB, free: 5.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.5778, allocations: 3.938 kB / 0.6142 GB, free: 5.086 MB / 426.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002133/0.578, allocations: 125.4 kB / 0.6143 GB, free: 4.957 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.578, allocations: 8 kB / 0.6143 GB, free: 4.949 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.578, allocations: 0 / 0.6143 GB, free: 4.949 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.578, allocations: 0 / 0.6143 GB, free: 4.949 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.994e-05/0.5781, allocations: 28.02 kB / 0.6144 GB, free: 4.922 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.5781, allocations: 4 kB / 0.6144 GB, free: 4.918 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.435e-05/0.5782, allocations: 0 / 0.6144 GB, free: 4.918 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.5782, allocations: 4.703 kB / 0.6144 GB, free: 4.914 MB / 426.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 0.0001084/0.5783, allocations: 141.7 kB / 0.6145 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.387e-05/0.5784, allocations: 15.81 kB / 0.6145 GB, free: 4.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000289/0.5786, allocations: 156.1 kB / 0.6147 GB, free: 4.594 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.5787, allocations: 4 kB / 0.6147 GB, free: 4.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.5787, allocations: 0 / 0.6147 GB, free: 4.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.5787, allocations: 0 / 0.6147 GB, free: 4.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005415/0.5792, allocations: 476 kB / 0.6151 GB, free: 4.062 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.5792, allocations: 0 / 0.6151 GB, free: 4.062 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.254e-05/0.5793, allocations: 23.92 kB / 0.6152 GB, free: 4.039 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.5793, allocations: 3.984 kB / 0.6152 GB, free: 4.035 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.5793, allocations: 16 kB / 0.6152 GB, free: 4.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.5793, allocations: 0 / 0.6152 GB, free: 4.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.5793, allocations: 0 / 0.6152 GB, free: 4.02 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.5796, allocations: 237 kB / 0.6154 GB, free: 3.766 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.72e-05/0.5797, allocations: 104.8 kB / 0.6155 GB, free: 3.645 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.015e-05/0.5797, allocations: 7.938 kB / 0.6155 GB, free: 3.637 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.558e-05/0.5798, allocations: 15.94 kB / 0.6155 GB, free: 3.621 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.115e-05/0.5799, allocations: 7.984 kB / 0.6155 GB, free: 3.613 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.5799, allocations: 4 kB / 0.6155 GB, free: 3.609 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001484/0.58, allocations: 169.3 kB / 0.6157 GB, free: 3.445 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.58, allocations: 3.938 kB / 0.6157 GB, free: 3.441 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002736/0.5803, allocations: 36 kB / 0.6157 GB, free: 3.406 MB / 426.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 (12): * Single equations (assignments): 10 * 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.001112/0.5814, allocations: 0.5207 MB / 0.6162 GB, free: 3.066 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002106/0.5817, allocations: 79.91 kB / 0.6163 GB, free: 2.988 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.5817, allocations: 0 / 0.6163 GB, free: 2.988 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 9.643e-05/0.5818, allocations: 43.92 kB / 0.6164 GB, free: 2.945 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.5821, allocations: 31.91 kB / 0.6164 GB, free: 2.914 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005513/0.5827, allocations: 341.6 kB / 0.6167 GB, free: 2.543 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.583, allocations: 0.7237 MB / 0.6174 GB, free: 1.793 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.847e-05/0.583, allocations: 19.62 kB / 0.6174 GB, free: 1.773 MB / 426.7 MB Notification: Performance of SimCode: time 2.7e-07/0.583, allocations: 0 / 0.6174 GB, free: 1.773 MB / 426.7 MB Notification: Performance of Templates: time 0.003919/0.587, allocations: 2.284 MB / 0.6197 GB, free: 15.5 MB / 442.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/jenkins1/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